Struct b3RayResult
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
The result of a closest-hit world ray cast. Mirror of b3RayResult.
public struct b3RayResultInherited Members
Fields
- childIndex
-
The child index when the shape is a compound.
- fraction
-
The fraction along the input ray at which the hit occurred.
- hit
-
Whether the ray hit anything. When false every other field is meaningless.
- leafVisits
-
The number of hierarchy leaves visited. Diagnostic.
- nodeVisits
-
The number of hierarchy nodes visited. Diagnostic.
- normal
-
The world-space surface normal at the hit point.
- point
-
The world-space hit point.
- shapeId
-
The shape that was hit.
- triangleIndex
-
The triangle index for mesh, height field or compound-with-mesh shapes.
- userMaterialId
-
The user material identifier at the hit point, which may be per triangle on a mesh, height field, or compound containing a mesh.