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

This commit is contained in:
chappuis.daniel 2009-11-29 10:56:27 +00:00
parent 6a050c968b
commit 19efd40258

View File

@ -19,7 +19,9 @@
// Libraries // Libraries
#include "DynamicEngine.h" #include "DynamicEngine.h"
#include "integration/RungeKutta.h" #include "../integration/RungeKutta4.h"
#include "../integration/ExplicitEuler.h"
#include "../integration/SemiImplicitEuler.h"
// We want to use the ReactPhysics3D namespace // We want to use the ReactPhysics3D namespace
using namespace reactphysics3d; using namespace reactphysics3d;
@ -33,8 +35,8 @@ DynamicEngine::DynamicEngine(DynamicWorld* world, const Time& timeStep)
throw std::invalid_argument("Exception in PhysicsEngine constructor : World pointer cannot be NULL"); throw std::invalid_argument("Exception in PhysicsEngine constructor : World pointer cannot be NULL");
} }
// Creation of the RK4 integration algorithm // Creation of the Semi-Implicit Euler integration algorithm
integrationAlgorithm = new RungeKutta4(); integrationAlgorithm = new SemiImplicitEuler();
} }
// Copy-constructor // Copy-constructor