Removing global variables from physics, because they are not needed.

This commit is contained in:
Faerbit 2014-11-25 13:38:28 +01:00
parent 4161ae0ec4
commit 7736e7850f
2 changed files with 1 additions and 14 deletions

View File

@ -1,18 +1,5 @@
#include "physics.hh"
btDynamicsWorld* world; //contains physical attributes of the world.
btDispatcher* dispatcher; //
btCollisionConfiguration* colConfig; //defines the type of collision detection.
btBroadphaseInterface* broadphase; //defines how objects are culled from collision detection.
btConstraintSolver* solver; //solver for forces and impulses.
std::vector<btRigidBody*> bodies; //list of all bodies. bodies are also in world, but save again to ease cleaning up process.
btRigidBody* playerBall;
btRigidBody* terrainBody;
btRigidBody* staticGroundBody;
Physics::Physics() {
}

View File

@ -53,7 +53,7 @@ class Physics {
void addBox(float width, float height, float length, Entity entity, float mass, unsigned indice);
private:
btRigidBody* playerBody;
btRigidBody* playerBall;
btRigidBody* terrainBody;
std::vector<btRigidBody*> bodies; //list of all bodies. bodies are also in world, but save again to ease cleaning up process.
btRigidBody* staticGroundBody;