Method b3Shape_RayCast
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
b3Shape_RayCast(b3ShapeId, Vector3, Vector3)
Ray cast a shape directly. The ray runs from origin to origin + translation and the hit point comes back as a world position, so the cast stays precise far from the world origin.
public static extern b3CastOutput b3Shape_RayCast(b3ShapeId shapeId, Vector3 origin, Vector3 translation)Parameters
shapeIdb3ShapeId-
See the Box3D documentation.
originVector3-
See the Box3D documentation.
translationVector3-
See the Box3D documentation.
Returns
- b3CastOutput
-
See the Box3D documentation.