VoxelHit
Where a voxelRaycast stopped.
Defined in: ray.ts:61
Properties
voxelRaycast()
CPU voxel raycast (Amanatides-Woo DDA), the same walk shaders/trace.wesl does on the GPU minus the coarse skip. dir need not be normalised; t is in units of dir (so origin + dir t is the hit point). Cells count as solid when data[i] !== 0 unless a solid predicate is given. Returns null when...
Vec3
A point or direction in grid space: x, y (up), z, in voxels.