|
|
|
@ -15,6 +15,7 @@ class btSequentialImpulseConstraintSolver;
|
|
|
|
|
class btCollisionDispatcher;
|
|
|
|
|
class btDiscreteDynamicsWorld;
|
|
|
|
|
class btKinematicCharacterController;
|
|
|
|
|
class btHeightfieldTerrainShape;
|
|
|
|
|
|
|
|
|
|
namespace BtOgre
|
|
|
|
|
{
|
|
|
|
@ -115,6 +116,12 @@ namespace Physic
|
|
|
|
|
bool collide;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct HeightField
|
|
|
|
|
{
|
|
|
|
|
btHeightfieldTerrainShape* mShape;
|
|
|
|
|
RigidBody* mBody;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The PhysicEngine class contain everything which is needed for Physic.
|
|
|
|
|
* It's needed that Ogre Resources are set up before the PhysicEngine is created.
|
|
|
|
@ -240,6 +247,9 @@ namespace Physic
|
|
|
|
|
//the NIF file loader.
|
|
|
|
|
BulletShapeLoader* mShapeLoader;
|
|
|
|
|
|
|
|
|
|
typedef std::map<std::string, HeightField> HeightFieldContainer;
|
|
|
|
|
HeightFieldContainer mHeightFieldMap;
|
|
|
|
|
|
|
|
|
|
typedef std::map<std::string,RigidBody*> RigidBodyContainer;
|
|
|
|
|
RigidBodyContainer RigidBodyMap;
|
|
|
|
|
|
|
|
|
|