Skip to content

CF_Triangle3

Category: collision
GitHub: cute_math3d.h


A single 3d triangle, counter-clockwise winding.

Struct Members Description
CF_V3 a The first vertex.
CF_V3 b The second vertex.
CF_V3 c The third vertex.

Remarks

The triangle queries treat the triangle as one-sided level geometry: the face normal follows the counter-clockwise winding of a, b, c. Collide gameplay shapes against your level mesh one (nearby) triangle at a time.

cf_ray3_to_triangle3
cf_make_triangle3
cf_sphere_to_triangle3_manifold
cf_capsule3_to_triangle3_manifold