Skip to main content

b3World_CastRayClosest

Function b3World_CastRayClosest 

Source
pub unsafe extern "C" fn b3World_CastRayClosest(
    worldId: b3WorldId,
    origin: b3Pos,
    translation: b3Vec3,
    filter: b3QueryFilter,
) -> b3RayResult
Expand description

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.