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: Vec3,
) -> Vec3
Expand description

Closest point on a shape to a target in the query frame. (b3Shape_GetClosestPoint)

Low-level closest point is a documented float carve-out far from the origin.