Method b3World_CastRayClosest
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
b3World_CastRayClosest(b3WorldId, Vector3, Vector3, b3QueryFilter)
Cast a ray into the world to collect the closest hit. This is a convenience function. Ignores initial overlap. This is less general than b3World_CastRay() and does not allow for custom filtering.
public static extern b3RayResult b3World_CastRayClosest(b3WorldId worldId, Vector3 origin, Vector3 translation, b3QueryFilter filter)Parameters
worldIdb3WorldId-
See the Box3D documentation.
originVector3-
See the Box3D documentation.
translationVector3-
See the Box3D documentation.
filterb3QueryFilter-
See the Box3D documentation.
Returns
- b3RayResult
-
See the Box3D documentation.