cf_collide¶
Category: collision
GitHub: cute_math.h
Computes a CF_Manifold between two shapes.
void cf_collide(const void* A, const CF_Transform* ax, CF_ShapeType typeA, const void* B, const CF_Transform* bx, CF_ShapeType typeB, CF_Manifold* m);
Parameters | Description |
---|---|
A | The first shape. |
ax | Can be NULL to represent an identity transform. An optional pointer to a CF_Transform to transform A . |
typeA | The CF_ShapeType of the first shape A . |
B | The second shape. |
bx | Can be NULL to represent an identity transform. An optional pointer to a CF_Transform to transform B . |
typeA | The CF_ShapeType of the second shape B . |
m | Contains information about the intersection. m->count is set to zero for no-intersection. See CF_Manifold for details. |