From b39bb3ba37f4ae068d31afeb8ce169fa2b1f5bb6 Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Wed, 8 Nov 2017 21:14:21 +0100 Subject: [PATCH] Initialize the timestep in the DynamicsWorld constructor --- src/engine/DynamicsWorld.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/DynamicsWorld.cpp b/src/engine/DynamicsWorld.cpp index 09712c3c..26835166 100644 --- a/src/engine/DynamicsWorld.cpp +++ b/src/engine/DynamicsWorld.cpp @@ -44,7 +44,7 @@ DynamicsWorld::DynamicsWorld(const Vector3 &gravity) mConstraintSolver(mMapBodyToConstrainedVelocityIndex), mNbVelocitySolverIterations(DEFAULT_VELOCITY_SOLVER_NB_ITERATIONS), mNbPositionSolverIterations(DEFAULT_POSITION_SOLVER_NB_ITERATIONS), - mIsSleepingEnabled(SLEEPING_ENABLED), mGravity(gravity), + mIsSleepingEnabled(SLEEPING_ENABLED), mGravity(gravity), mTimeStep(decimal(1.0f / 60.0f)), mIsGravityEnabled(true), mConstrainedLinearVelocities(nullptr), mConstrainedAngularVelocities(nullptr), mSplitLinearVelocities(nullptr), mSplitAngularVelocities(nullptr), mConstrainedPositions(nullptr),