VoxelRaycastResult

Inherits: RefCounted

Result of a raycast performed with VoxelTool.raycast

Properties:

Type Name Default
float distance -4.31602e+08
Vector3i position Vector3i(0, 0, 0)
Vector3i previous_position Vector3i(0, 0, 0)

Property Descriptions

  • float distance = -4.31602e+08

  • Vector3i position = Vector3i(0, 0, 0)

Integer position of the voxel that was hit.

  • Vector3i previous_position = Vector3i(0, 0, 0)

Integer position of the previous voxel along the ray before the final hit.

Generated on Sep 12, 2023