Skip to content

Documentation / @ripl/3d / Intersection3D

Interface: Intersection3D ​

Defined in: 3d/src/core/shape.ts:188

Where a ray met a shape's geometry.

Properties ​

PropertyTypeDescriptionDefined in
backFacingbooleanWhether the triangle was met from behind.3d/src/core/shape.ts:200
distancenumberDistance along the ray, in world units.3d/src/core/shape.ts:192
elementShape3DThe shape that was hit.3d/src/core/shape.ts:190
faceFace3DThe face that was hit.3d/src/core/shape.ts:196
faceIndexnumberThe index of the hit face within the shape's face list.3d/src/core/shape.ts:198
normalVector3The world-space surface normal at the hit, interpolated when the face carries vertex normals.3d/src/core/shape.ts:202
pointVector3The world-space point of the hit.3d/src/core/shape.ts:194
uvVector2 | undefinedThe texture coordinate at the hit, when the face carries UVs.3d/src/core/shape.ts:204