HammeriteMapBVHHitResult
Core: the map. Inherits RefCounted
Result structure for BVH raycasts
Properties
| Type | Name | Default |
|---|---|---|
int | brush_id | |
float | distance | |
int | face_id | |
bool | hit | |
Vector3 | normal | |
Vector3 | point | |
String | texture |
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.