Collide: Sphere
Sphere collider for the collide ecosystem. Dimension-generic (2D/3D/N-D).
The simplest and most efficient collider type: center + radius. Collision detection is a single distance check. Use dedicated sphere-only collision layers for optimal performance compared to more general types like capsules or convex shapes.
Usage
use Collider;
use Sphere;
let a = new;
let b = new;
if a.check_collision
Features
ray— enablesCollider<Ray>for ray intersection support