|
Gama C Library
Gama C API Documentation
|
Structure representing a collision between two bodies. More...
#include <system.h>
Data Fields | |
| struct gm_system * | sys |
| gmBody * | bodies [2] |
| double | penetration |
| double | since |
| gmPos | normals |
Structure representing a collision between two bodies.
| gmBody* gmCollision::bodies[2] |
Array containing the two colliding bodies
| gmPos gmCollision::normals |
Normal vector of the collision
| double gmCollision::penetration |
Depth of penetration between the bodies
| double gmCollision::since |
Time since the collision began
| struct gm_system* gmCollision::sys |
Pointer to the system where the collision occurred