Skip to content

cf_collided

Category: collision
GitHub: cute_math.h


Returns true if two shapes collided.

int cf_collided(const void* A, CF_ShapeType typeA, const void* B, CF_ShapeType typeB);
Parameters Description
A The first shape.
typeA The CF_ShapeType of the first shape A.
B The second shape.
typeB The CF_ShapeType of the second shape B.

CF_ShapeType
cf_collide