|
Gama C Library
Gama C API Documentation
|
Structure representing a physics body with properties for collision and movement. More...
#include <body.h>
Data Fields | |
| uint8_t | is_active |
| uint8_t | is_static |
| gmColliderType | collider_type |
| gmPos | position |
| gmPos | velocity |
| gmPos | acceleration |
| double | width |
| double | height |
| double | radius |
| double | mass |
| double | restitution |
| double | friction |
Structure representing a physics body with properties for collision and movement.
| gmPos gmBody::acceleration |
Current acceleration of the body
| gmColliderType gmBody::collider_type |
Type of collider (rectangle or circle)
| double gmBody::friction |
Friction coefficient (not currently used in the code)
| double gmBody::height |
| uint8_t gmBody::is_active |
Whether the body is active in the physics simulation
| uint8_t gmBody::is_static |
Whether the body is static (immovable)
| double gmBody::mass |
Mass of the body
| gmPos gmBody::position |
Current position of the body
| double gmBody::radius |
Dimensions of the body (width/height for rectangles, radius for circles)
| double gmBody::restitution |
Bounciness of the body (0.0 = no bounce, 1.0+ = bounce)
| gmPos gmBody::velocity |
Current velocity of the body
| double gmBody::width |