git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@294 92aac97c-a6ce-11dd-a772-7fcde58d38e6

This commit is contained in:
chappuis.daniel 2010-03-24 21:36:36 +00:00
parent 05cb6572e2
commit c4c6a3969b
2 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ void Simulation::start() {
// Get the current time // Get the current time
lastFrameTime = SDL_GetTicks(); lastFrameTime = SDL_GetTicks();
DynamicEngine* pEngine = &engine; PhysicsEngine* pEngine = &engine;
// Initialize the display time // Initialize the display time
pEngine->initializeDisplayTime(Time(SDL_GetTicks()/1000.0)); pEngine->initializeDisplayTime(Time(SDL_GetTicks()/1000.0));

View File

@ -31,7 +31,7 @@ class Simulation {
rp3d::PhysicsWorld* world; // Pointer to the collision world that contains bodies of the simulation rp3d::PhysicsWorld* world; // Pointer to the collision world that contains bodies of the simulation
Scene scene; // Scene object for displaying the simulation Scene scene; // Scene object for displaying the simulation
Context context; // Context of the simulation Context context; // Context of the simulation
rp3d::CollisionEngine engine; // Collision engine for the physics of the simulation rp3d::PhysicsEngine engine; // Collision engine for the physics of the simulation
bool simRunning; // True if the simulation is running and false otherwise bool simRunning; // True if the simulation is running and false otherwise
bool mouseButtonPressed; // True if the left mouse button is pressed bool mouseButtonPressed; // True if the left mouse button is pressed
double lastFrameTime; // Last frame time double lastFrameTime; // Last frame time