Skip to main content

shape_get_closest_point

Function shape_get_closest_point 

Source
pub fn shape_get_closest_point(
    world: &World,
    shape_id: ShapeId,
    target: Pos,
) -> Pos
Expand description

Get the closest point on a shape to a target point. Target and result are in world space. (b2Shape_GetClosestPoint)