Collide: Convex
Convex hull collider for the collide ecosystem. Dimension-generic (2D/3D/N-D).
Handles arbitrary convex shapes defined as the Minkowski sum of a convex hull (N points) and a sphere (radius). Uses GJK for distance computation and EPA for penetration depth.
Usage
use Collider;
use Convex;
let triangle = new;
let sphere = sphere;
let capsule = capsule;
if triangle.check_collision
Features
ray— enablesCollider<Ray>for ray intersection via GJK raycast