SuperTuxKart
|
A thin wrapper around bullet's btDiscreteDynamicsWorld. More...
#include <stk_dynamics_world.hpp>
Public Member Functions | |
STKDynamicsWorld (btDispatcher *dispatcher, btBroadphaseInterface *pairCache, btConstraintSolver *constraintSolver, btCollisionConfiguration *collisionConfiguration) | |
The standard constructor which just created a btDiscreteDynamicsWorld. | |
void | resetLocalTime () |
Resets m_localTime to 0. | |
void | setLocalTime (float t) |
Sets the local time to a specified value. | |
float | getLocalTime () const |
Gets the local time. | |
A thin wrapper around bullet's btDiscreteDynamicsWorld.
Used to be able to query and set the 'left over' time from a previous time step, which is needed for more precise rewind/replays.
|
inline |
Resets m_localTime to 0.
This allows more precise replay of physics, which is important for replaying histories.
|
inline |
Sets the local time to a specified value.
Used in rewinding.