HammeriteMapBVHHitResult

Core: the map. Inherits RefCounted

Result structure for BVH raycasts

Properties

TypeNameDefault
intbrush_id
floatdistance
intface_id
boolhit
Vector3normal
Vector3point
Stringtexture

Property descriptions

brush_id

var brush_id: int

The HammeriteBrush.id of the brush hit, or -1.

distance

var distance: float

How far along the ray the hit is, in map units.

face_id

var face_id: int

The index of the face hit in that brush's HammeriteBrush.faces, or -1.

hit

var hit: bool

Whether the ray met a face. When false the other fields keep their defaults.

normal

var normal: Vector3

The face's normal, pointing out of its own brush - into the rock, for an air brush.

point

var point: Vector3

Where the ray met the face, in map space.

texture

var texture: String

The texture name of the face hit, or empty.

Hammerite 2.0 · built from 6d57ab2d, 2026-10-17