Children transforms relative to parents using TransformSystem::AbsolutePosition and TransformSystem::AbsoluteOrientation

This commit is contained in:
2014-03-13 23:44:32 +01:00
parent ebd54f0833
commit cbb8eac917
15 changed files with 199 additions and 66 deletions
+25
View File
@@ -0,0 +1,25 @@
#ifndef TransformSystem_h__
#define TransformSystem_h__
#include "System.h"
#include "Components/Transform.h"
namespace Systems
{
class TransformSystem : public System
{
public:
TransformSystem(World* world)
: System(world) { }
//void Update(double dt) override;
//void UpdateEntity(double dt, EntityID entity, EntityID parent) override;
glm::vec3 AbsolutePosition(EntityID entity);
glm::quat AbsoluteOrientation(EntityID entity);
};
}
#endif // TransformSystem_h__