dot big bang

Developer API
Menu

Class VoxelObjectIntersection

All
  • Public
  • Public/Protected
  • All

Hierarchy

  • VoxelObjectIntersection

Index

Constructors

Properties

Constructors

constructor

Properties

distance

distance: number

The distance, in world units, from the origin of the ray/line segment to the intersection point on the surface of the voxel (in the Entity's VoxelObject).

entity

entity: Entity

The Entity which VoxelObject was hit by the ray/line segment.

normal

normal: Vector3

The normal, in world space, of the voxel (in the Entity's VoxelObject) that got hit by the ray/line segment. It is guaranteed to be a unit vector.

point

point: Vector3

The point, in world space, on the surface of the voxel (in the Entity's VoxelObject) that got hit by the ray/line segment.

voxel

voxel: Vector3

The coordinates of the voxel, in VoxelObject space/grid, that got hit by the ray/line segment.