diff --git a/src/engine/ContactSolver.cpp b/src/engine/ContactSolver.cpp index 4beafb05..d9f6da25 100644 --- a/src/engine/ContactSolver.cpp +++ b/src/engine/ContactSolver.cpp @@ -42,7 +42,7 @@ const decimal ContactSolver::SLOP = decimal(0.01); ContactSolver::ContactSolver(MemoryManager& memoryManager, const WorldSettings& worldSettings) :mMemoryManager(memoryManager), mSplitLinearVelocities(nullptr), mSplitAngularVelocities(nullptr), mContactConstraints(nullptr), - mLinearVelocities(nullptr), mAngularVelocities(nullptr), + mContactPoints(nullptr), mLinearVelocities(nullptr), mAngularVelocities(nullptr), mIsSplitImpulseActive(true), mWorldSettings(worldSettings) { #ifdef IS_PROFILING_ACTIVE diff --git a/src/engine/ContactSolver.h b/src/engine/ContactSolver.h index ca5a9903..38961709 100644 --- a/src/engine/ContactSolver.h +++ b/src/engine/ContactSolver.h @@ -273,7 +273,6 @@ class ContactSolver { /// Memory manager MemoryManager& mMemoryManager; - /// Split linear velocities for the position contact solver (split impulse) Vector3* mSplitLinearVelocities; diff --git a/src/engine/Timer.cpp b/src/engine/Timer.cpp index 536d35d0..3fd93bd1 100644 --- a/src/engine/Timer.cpp +++ b/src/engine/Timer.cpp @@ -30,7 +30,7 @@ using namespace reactphysics3d; // Constructor -Timer::Timer(double timeStep) : mTimeStep(timeStep), mLastUpdateTime(0), mIsRunning(false) { +Timer::Timer(double timeStep) : mTimeStep(timeStep), mLastUpdateTime(0), mDeltaTime(0), mIsRunning(false) { assert(timeStep > 0.0); } diff --git a/test/tests/collision/TestTriangleVertexArray.h b/test/tests/collision/TestTriangleVertexArray.h index c4c3d53b..282b7d55 100644 --- a/test/tests/collision/TestTriangleVertexArray.h +++ b/test/tests/collision/TestTriangleVertexArray.h @@ -47,7 +47,7 @@ class TestTriangleVertexArray : public Test { double mVertices2[4*3]; float mNormals2[4*3]; uint mIndices1[6]; - uint mIndices2[6]; + short mIndices2[6]; TriangleVertexArray* mTriangleVertexArray1; TriangleVertexArray* mTriangleVertexArray2; diff --git a/testbed/src/Gui.cpp b/testbed/src/Gui.cpp index be6e5b57..69b89852 100644 --- a/testbed/src/Gui.cpp +++ b/testbed/src/Gui.cpp @@ -39,7 +39,10 @@ double Gui::mCachedUpdateTime = 0; double Gui::mCachedPhysicsUpdateTime = 0; // Constructor -Gui::Gui(TestbedApplication* app) : mApp(app), mSimulationPanel(nullptr) { +Gui::Gui(TestbedApplication* app) + : mApp(app), mSimulationPanel(nullptr), mSettingsPanel(nullptr), mPhysicsPanel(nullptr), + mRenderingPanel(nullptr), mFPSLabel(nullptr), mFrameTimeLabel(nullptr), mPhysicsTimeLabel(nullptr) +{ } diff --git a/testbed/src/Timer.cpp b/testbed/src/Timer.cpp index 202a4d41..5c3e964f 100644 --- a/testbed/src/Timer.cpp +++ b/testbed/src/Timer.cpp @@ -28,7 +28,7 @@ // Constructor -Timer::Timer() : mIsRunning(false) { +Timer::Timer() : mLastUpdateTime(0), mDeltaTime(0), mAccumulator(0), mIsRunning(false) { }