Skip to content

cf_sphere_to_triangle3_manifold

Category: collision
GitHub: cute_math3d.h


Computes contact information for a sphere against a one-sided triangle.

CF_Manifold3 cf_sphere_to_triangle3_manifold(CF_Sphere A, CF_Triangle3 B);

Remarks

The workhorse of "collide my character against the level mesh": gather nearby triangles, manifold each, resolve along the deepest normals (or feed the planes to Box3D's b3SolvePlanes mover -- see the Physics topic).

CF_Manifold3
CF_Sphere
CF_Triangle3
cf_capsule3_to_triangle3_manifold
cf_aabb3_to_triangle3_manifold