StaticgetCalculates the closest point on a collider's surface to a given point in world space.
The collider component to calculate the closest point on.
The query point in world space.
The closest point on the collider surface in world space.
StaticgetCalculates an approximate closest point on a collider's surface to a line segment.
This provides a fast, plausible result but is an approximation. Accuracy decreases for colliders with non-uniform scaling, as the underlying math simplifies the geometry for performance.
The collider component to calculate the closest point on.
The start point of the line segment in world space.
The end point of the line segment in world space.
The closest point on the collider's surface. A new vec3 instance.
StaticgetComputes a fast, approximate world-space bounding sphere for a collider using its cached local AABB and transform. Returns null if no cached AABB data is available.
StaticgetGets statistics about the vector object pools for debugging and monitoring.
StaticinvalidateRemoves a collider's cached AABB data from the internal cache.
A collection of utility functions for collider calculations.
Note: Closest point calculations are local AABB-based approximations, not precise collider geometry.