CompoundShape works, i.e parent child physics :)

Center of mass is still bugged.
This commit is contained in:
ViktorLjung
2014-04-06 19:00:58 +02:00
parent 1d0747076f
commit a880e7f3e6
9 changed files with 196 additions and 162 deletions
+3 -2
View File
@@ -4,6 +4,7 @@
#include "System.h"
#include "Components/Transform.h"
#include "Components/Physics.h"
#include "Components/CompoundShape.h"
#include "Components/BoxShape.h"
#include "Components/SphereShape.h"
@@ -38,8 +39,8 @@ namespace Systems
std::map<EntityID, PhysicsData> m_PhysicsData;
void SetUpPhysicsState(EntityID entity);
void TearDownPhysicsState(EntityID entity);
void SetUpPhysicsState(EntityID entity, EntityID parent);
void TearDownPhysicsState(EntityID entity, EntityID parent);