cf_collided¶
Category: collision
GitHub: cute_math.h
Returns a true if two shapes collided.
int cf_collided(const void* A, const CF_Transform* ax, CF_ShapeType typeA, const void* B, const CF_Transform* bx, CF_ShapeType typeB);
| Parameters | Description |
|---|---|
| A | The first shape. |
| typeA | The CF_ShapeType of the first shape A. |
| ax_ptr | Can be NULL to represent an identity transform. An optional pointer to a CF_Transform to transform A. |
| vA | The velocity of A. |
| B | The second shape. |
| typeA | The CF_ShapeType of the second shape B. |
| bx_ptr | Can be NULL to represent an identity transform. An optional pointer to a CF_Transform to transform B. |