Components + almost AABB

This commit is contained in:
Adam
2014-03-06 21:32:31 +01:00
parent 54a5a7a113
commit 00584ab397
21 changed files with 401 additions and 11 deletions
+8 -6
View File
@@ -2,16 +2,18 @@
#define Transform_h__
#include "Component.h"
#include <glm/gtc/quaternion.hpp>
namespace Components
{
struct Transform : Component
{
float Position[3];
};
REGISTER_COMPONENT("Transform", Transform);
struct Transform : Component
{
float Position[3];
glm::fquat qtrn; //Quaternion with floats
float Velocity[3];
};
REGISTER_COMPONENT("Transform", Transform);
}
#endif // Transform_h__