#include <PhysicsManager.h>
Public Member Functions | |
PhysicsManager () | |
~PhysicsManager () | |
void | setDebug (bool _val) |
void | createGroundPlane () |
Ogre::Vector3 | getGravity () |
void | setGravity (Ogre::Vector3 _val) |
void | update (Ogre::Real _time) |
void | addPair (OgreBulletDynamics::RigidBody *_rigid, OgreBulletCollisions::CollisionShape *_shape) |
void | addRigidBody (OgreBulletDynamics::RigidBody *_val) |
void | addCollisionShape (OgreBulletCollisions::CollisionShape *_val) |
void | addConstraint (btTypedConstraint *_val) |
OgreBulletDynamics::RigidBody * | createRigidBody (std::string _val) |
OgreBulletCollisions::CollisionShape * | createCollisionShape (const Ogre::Real &_radius, const Ogre::Real &_height, const Ogre::Vector3 &_axis) |
OgreBulletCollisions::CollisionShape * | createCollisionShape (Ogre::Entity *_val) |
void | boxWall () |
OgreBulletDynamics::DynamicsWorld * | getDynamicsWorld () |
Protected Attributes | |
Ogre::Vector3 | m_gravity |
Ogre::AxisAlignedBox | m_worldBoundary |
Ogre::Real | m_boundarySize |
OgreBulletDynamics::DynamicsWorld * | m_dynamicsWorld |
OgreBulletCollisions::DebugDrawer * | m_debugDrawer |
std::list < OgreBulletDynamics::RigidBody * > | m_rigidBodies |
std::list < OgreBulletCollisions::CollisionShape * > | m_collisionShapes |
std::list< btTypedConstraint * > | m_constraints |
Definition at line 7 of file PhysicsManager.h.
PhysicsManager::PhysicsManager | ( | ) |
Definition at line 11 of file PhysicsManager.cpp.
PhysicsManager::~PhysicsManager | ( | ) |
Definition at line 35 of file PhysicsManager.cpp.
void PhysicsManager::addCollisionShape | ( | OgreBulletCollisions::CollisionShape * | _val | ) |
Definition at line 168 of file PhysicsManager.cpp.
void PhysicsManager::addConstraint | ( | btTypedConstraint * | _val | ) |
Definition at line 206 of file PhysicsManager.cpp.
void PhysicsManager::addPair | ( | OgreBulletDynamics::RigidBody * | _rigid, | |
OgreBulletCollisions::CollisionShape * | _shape | |||
) |
Definition at line 154 of file PhysicsManager.cpp.
void PhysicsManager::addRigidBody | ( | OgreBulletDynamics::RigidBody * | _val | ) |
Definition at line 160 of file PhysicsManager.cpp.
void PhysicsManager::boxWall | ( | ) |
Definition at line 98 of file PhysicsManager.cpp.
OgreBulletCollisions::CollisionShape * PhysicsManager::createCollisionShape | ( | Ogre::Entity * | _val | ) |
Definition at line 186 of file PhysicsManager.cpp.
OgreBulletCollisions::CollisionShape * PhysicsManager::createCollisionShape | ( | const Ogre::Real & | _radius, | |
const Ogre::Real & | _height, | |||
const Ogre::Vector3 & | _axis | |||
) |
Definition at line 181 of file PhysicsManager.cpp.
void PhysicsManager::createGroundPlane | ( | ) |
Definition at line 79 of file PhysicsManager.cpp.
OgreBulletDynamics::RigidBody * PhysicsManager::createRigidBody | ( | std::string | _val | ) |
Definition at line 176 of file PhysicsManager.cpp.
OgreBulletDynamics::DynamicsWorld * PhysicsManager::getDynamicsWorld | ( | ) |
Definition at line 213 of file PhysicsManager.cpp.
Ogre::Vector3 PhysicsManager::getGravity | ( | ) |
Definition at line 196 of file PhysicsManager.cpp.
void PhysicsManager::setDebug | ( | bool | _val | ) |
Definition at line 66 of file PhysicsManager.cpp.
void PhysicsManager::setGravity | ( | Ogre::Vector3 | _val | ) |
Definition at line 201 of file PhysicsManager.cpp.
void PhysicsManager::update | ( | Ogre::Real | _time | ) |
Definition at line 149 of file PhysicsManager.cpp.
Ogre::Real PhysicsManager::m_boundarySize [protected] |
Definition at line 42 of file PhysicsManager.h.
std::list<OgreBulletCollisions::CollisionShape*> PhysicsManager::m_collisionShapes [protected] |
Definition at line 48 of file PhysicsManager.h.
std::list<btTypedConstraint*> PhysicsManager::m_constraints [protected] |
Definition at line 49 of file PhysicsManager.h.
OgreBulletCollisions::DebugDrawer* PhysicsManager::m_debugDrawer [protected] |
Definition at line 45 of file PhysicsManager.h.
OgreBulletDynamics::DynamicsWorld* PhysicsManager::m_dynamicsWorld [protected] |
Definition at line 44 of file PhysicsManager.h.
Ogre::Vector3 PhysicsManager::m_gravity [protected] |
Definition at line 40 of file PhysicsManager.h.
std::list<OgreBulletDynamics::RigidBody*> PhysicsManager::m_rigidBodies [protected] |
Definition at line 47 of file PhysicsManager.h.
Ogre::AxisAlignedBox PhysicsManager::m_worldBoundary [protected] |
Definition at line 41 of file PhysicsManager.h.