Constraints working, I think... :D

This commit is contained in:
ViktorLjung
2014-04-07 00:08:09 +02:00
parent 0896f540fe
commit 4a6f0cad32
6 changed files with 132 additions and 50 deletions
+4 -4
View File
@@ -7,6 +7,9 @@
#include "Components/CompoundShape.h"
#include "Components/BoxShape.h"
#include "Components/SphereShape.h"
#include "Components/BallSocketConstraint.h"
#include "Components/HingeConstraint.h"
#include "Components/SliderConstraint.h"
#include "btBulletDynamicsCommon.h"
#include "LinearMath/btMatrix3x3.h"
@@ -37,13 +40,10 @@ namespace Systems
btCollisionShape* CollisionShape;
};
std::map<EntityID, PhysicsData> m_PhysicsData;
std::map<std::pair<EntityID, EntityID>, btTypedConstraint*> m_Constraints;
void SetUpPhysicsState(EntityID entity, EntityID parent);
void TearDownPhysicsState(EntityID entity, EntityID parent);
};
}