Fix tests and fix compilation warnings
This commit is contained in:
parent
96c581ae9b
commit
491702c05c
|
@ -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
|
||||
|
|
|
@ -273,7 +273,6 @@ class ContactSolver {
|
|||
/// Memory manager
|
||||
MemoryManager& mMemoryManager;
|
||||
|
||||
|
||||
/// Split linear velocities for the position contact solver (split impulse)
|
||||
Vector3* mSplitLinearVelocities;
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
|
||||
// Constructor
|
||||
Timer::Timer() : mIsRunning(false) {
|
||||
Timer::Timer() : mLastUpdateTime(0), mDeltaTime(0), mAccumulator(0), mIsRunning(false) {
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user