added replacement for CcdPhysicsEnvironment
This commit is contained in:
@@ -16,19 +16,22 @@ subject to the following restrictions:
|
||||
#ifndef BT_SIMPLE_DYNAMICS_WORLD_H
|
||||
#define BT_SIMPLE_DYNAMICS_WORLD_H
|
||||
|
||||
#include "BulletCollision/CollisionDispatch/btCollisionWorld.h"
|
||||
class SequentialImpulseConstraintSolver;
|
||||
#include "btDynamicsWorld.h"
|
||||
|
||||
class Dispatcher;
|
||||
class OverlappingPairCache;
|
||||
class ConstraintSolver;
|
||||
|
||||
///btSimpleDynamicsWorld demonstrates very basic usage of Bullet rigid body dynamics
|
||||
///It can be used for basic simulations, and as a starting point for porting Bullet
|
||||
///btSimpleDynamicsWorld lacks object deactivation, island management and other concepts.
|
||||
///For more complicated simulations, btDiscreteDynamicsWorld and btContinuousDynamicsWorld are recommended
|
||||
///those classes replace the obsolete CcdPhysicsEnvironment/CcdPhysicsController
|
||||
class btSimpleDynamicsWorld : public CollisionWorld
|
||||
class btSimpleDynamicsWorld : public btDynamicsWorld
|
||||
{
|
||||
protected:
|
||||
|
||||
SequentialImpulseConstraintSolver* m_constraintSolver;
|
||||
ConstraintSolver* m_constraintSolver;
|
||||
|
||||
void predictUnconstraintMotion(float timeStep);
|
||||
|
||||
@@ -38,8 +41,11 @@ protected:
|
||||
|
||||
public:
|
||||
|
||||
|
||||
btSimpleDynamicsWorld(Dispatcher* dispatcher,OverlappingPairCache* pairCache,ConstraintSolver* constraintSolver);
|
||||
|
||||
btSimpleDynamicsWorld();
|
||||
|
||||
|
||||
virtual ~btSimpleDynamicsWorld();
|
||||
|
||||
virtual void stepSimulation( float timeStep);
|
||||
|
||||
Reference in New Issue
Block a user