The context is the way to interact with specific backend context implementation such as JoltPhysics as our specific implementation-backend.
More...
|
|
void | destroy () |
| | Performs cleanup when simulation stops.
|
| |
|
void | update (float p_delta_time) |
| | updates our simulation using delta time and works with a fixed timestep
|
| |
| void | prepare () |
| | As soon all physics bodies/colliders are created.
|
| |
| void | add_box_collider (uint32_t p_entity_id, const transform *p_transform, const physics_body *p_body, const box_collider *p_collider) |
| |
| void | add_sphere_collider (uint32_t p_entity_id, const transform *p_transform, const physics_body *p_body, const sphere_collider *p_collider) |
| |
| void | add_capsule_collider (uint32_t p_entity_id, const transform *p_transform, const physics_body *p_body, const capsule_collider *p_collider) |
| |
| transform | read_transform (uint32_t p_id) |
| |
| physics_body | read_physics_body (uint32_t p_id) |
| |
|
void | set_linear_velocity (uint64_t p_id, const glm::vec3 &p_linear_velocity) |
| |
|
void | set_angular_velocity (uint64_t p_id, const glm::vec3 &p_angular_velocity) |
| |
|
void | set_force (uint64_t p_id, const glm::vec3 &p_force) |
| |
|
void | set_force_and_torque (uint64_t p_id, const glm::vec3 &p_force, const glm::vec3 &p_torque) |
| |
|
void | set_impulse (uint64_t p_id, const glm::vec3 &p_impulse) |
| |
The context is the way to interact with specific backend context implementation such as JoltPhysics as our specific implementation-backend.
Provides API's to interact with the implemented physics context to run its simulation