Skip to content

CF_Manifold

Category: collision
GitHub: cute_math.h


Contains all information necessary to resolve a collision.

Struct Members Description
int count The number of points in the manifold (0, 1 or 2).
float depths[2] The collision depth of each point in the manifold.
CF_V2 contact_points[2] Up to two points on the contact plane that sufficiently (and minimally) describe how two shapes are touching.
CF_V2 n Always points from shape A to shape B.

Remarks

This is the information needed to separate shapes that are colliding.

cf_poly_to_poly_manifold
cf_circle_to_circle_manifold
cf_circle_to_aabb_manifold
cf_circle_to_capsule_manifold
cf_aabb_to_aabb_manifold
cf_aabb_to_capsule_manifold
cf_capsule_to_capsule_manifold
cf_circle_to_poly_manifold
cf_aabb_to_poly_manifold
cf_capsule_to_poly_manifold