#include <physics.hpp>
Physics Service handles collisions and mouse collision logic. You can define the worlds gravity in its constructor:
Definition physics.hpp:108
Definition definitions.hpp:77
◆ Physics()
| Physics::Physics |
( |
Vector2 |
gravity = {0.0f, 9.81f} | ) |
|
◆ deRegisterBody()
◆ exit()
◆ findBodyFromShape()
| PhysicsBody * Physics::findBodyFromShape |
( |
b2ShapeId |
id | ) |
|
◆ physicsUpdate()
| void Physics::physicsUpdate |
( |
float |
timeStep | ) |
|
◆ registerBody()
◆ b2callback
| bool b2callback |
( |
b2ShapeId |
shapeId, |
|
|
void * |
ctx |
|
) |
| |
|
friend |
◆ gravity
| Vector2 Physics::gravity = {0.0f, 9.81f} |
◆ subSteps
| int Physics::subSteps = 4 |
◆ worldDef
| b2WorldDef Physics::worldDef |
◆ worldId
| b2WorldId Physics::worldId |
The documentation for this class was generated from the following files: