Removing global variables from physics, because they are not needed.
This commit is contained in:
parent
4161ae0ec4
commit
7736e7850f
13
physics.cc
13
physics.cc
@ -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() {
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user