pub unsafe extern "C" fn b2World_CastRay(
worldId: b2WorldId,
origin: b2Vec2,
translation: b2Vec2,
filter: b2QueryFilter,
fcn: b2CastResultFcn,
context: *mut c_void,
) -> b2TreeStatsExpand description
Cast a ray into the world to collect shapes in the path of the ray. Your callback function controls whether you get the closest point, any point, or n-points. @note The callback function may receive shapes in any order @param worldId The world to cast the ray against @param origin The start point of the ray @param translation The translation of the ray from the start point to the end point @param filter Contains bit flags to filter unwanted shapes from the results @param fcn A user implemented callback function @param context A user context that is passed along to the callback function @return traversal performance counters