|
Gama C Library
Gama C API Documentation
|
Structure to store detailed information about a collision between two bodies. More...
#include <collision.h>
Data Fields | |
| gmBody * | bodies [2] |
| gmPos | normals |
| double | penetration |
| double | since |
| gmSystem * | sys |
Structure to store detailed information about a collision between two bodies.
| gmBody* gm_collision::bodies[2] |
Pointers to the two bodies involved in the collision.
| gmPos gm_collision::normals |
The normal vector of the collision, pointing from bodies[0] to bodies[1].
| double gm_collision::penetration |
The penetration depth of the collision (how much bodies overlap).
| double gm_collision::since |
The total time the bodies have been in collision (for continuous collision detection).
| gmSystem* gm_collision::sys |
Pointer to the physics system managing this collision (can be NULL).