Skip to main content

b2Shape_RayCast

Function b2Shape_RayCast 

Source
pub unsafe extern "C" fn b2Shape_RayCast(
    shapeId: b2ShapeId,
    origin: b2Pos,
    translation: b2Vec2,
) -> b2WorldCastOutput
Expand description

Ray cast a single shape. The ray starts at the origin and extends by the translation. The output point is a world position.