Expand description
Sphere collider implementation for the collide crate.
A sphere is the simplest collider: just a center point and a radius. Collision detection reduces to a single distance check, making it the most efficient collider type.
When using a CollisionManager with only spheres, you get a dedicated
layer with optimal performance — no unnecessary branching or memory
overhead compared to more general collider types like capsules or convex shapes.
Enable the ray feature to get Collider<Ray<V>> for Sphere<V>.
Structs§
- Sphere
- A sphere collider defined by a center point and radius.