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: Vec2,
}Fields§
§is_inside: boolWhether the query point was inside the shape.
true: Vector is in the interior (for solid shapes)false: Vector is outside the shape
point: Vec2The 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.