pub type PointProjection = PointProjection;Expand description
The projection of a point on a collider.
Aliased Type§
pub struct PointProjection {
pub is_inside: bool,
pub point: OPoint<f32, Const<3>>,
}Fields§
§is_inside: boolWhether the query point was inside the shape.
true: Point is in the interior (for solid shapes)false: Point is outside the shape
point: OPoint<f32, Const<3>>The closest point on the shape’s surface to the query point.
If is_inside = true, this is the nearest point on the boundary.
If is_inside = false, this is the nearest surface point.