Documentation / @ripl/3d / Intersection3D
Interface: Intersection3D ​
Defined in: 3d/src/core/shape.ts:188
Where a ray met a shape's geometry.
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
backFacing | boolean | Whether the triangle was met from behind. | 3d/src/core/shape.ts:200 |
distance | number | Distance along the ray, in world units. | 3d/src/core/shape.ts:192 |
element | Shape3D | The shape that was hit. | 3d/src/core/shape.ts:190 |
face | Face3D | The face that was hit. | 3d/src/core/shape.ts:196 |
faceIndex | number | The index of the hit face within the shape's face list. | 3d/src/core/shape.ts:198 |
normal | Vector3 | The world-space surface normal at the hit, interpolated when the face carries vertex normals. | 3d/src/core/shape.ts:202 |
point | Vector3 | The world-space point of the hit. | 3d/src/core/shape.ts:194 |
uv | Vector2 | undefined | The texture coordinate at the hit, when the face carries UVs. | 3d/src/core/shape.ts:204 |