Skip to content

Interface: WorldBlockIntersection ​

Defined in: packages/minerender/src/world/WorldBlockIntersection.ts:5

The nearest rendered block triangle hit by a world raycast.

Properties ​

PropertyTypeDescriptionDefined in
blockBlockDetached block data; use world setters to change the block.packages/minerender/src/world/WorldBlockIntersection.ts:9
distancenumberDistance from the ray origin, in scene units.packages/minerender/src/world/WorldBlockIntersection.ts:15
normalVector3Unit face normal in scene space. Sloped and rotated faces retain their geometric normal.packages/minerender/src/world/WorldBlockIntersection.ts:13
pointVector3Hit position in scene units.packages/minerender/src/world/WorldBlockIntersection.ts:11
positionVector3Integer world block coordinates of the geometry's owner.packages/minerender/src/world/WorldBlockIntersection.ts:7