Box and Sphere Rigidbodies working

This commit is contained in:
ViktorLjung
2014-04-13 02:20:50 +02:00
parent f6090679b7
commit 84484b3703
9 changed files with 201 additions and 79 deletions
+21
View File
@@ -0,0 +1,21 @@
#ifndef Components_Box_h__
#define Components_Box_h__
#include "Component.h"
namespace Components
{
struct Box : Component
{
Box()
: Width(1.f), Height(1.f), Depth(1.f){ }
float Width;
float Height;
float Depth;
};
}
#endif // Components_Box_h__
+19
View File
@@ -0,0 +1,19 @@
#ifndef Components_Physics_h__
#define Components_Physics_h__
#include "Component.h"
namespace Components
{
struct Physics : Component
{
Physics()
: Mass(0.f) { }
float Mass;
};
}
#endif // Components_Physics_h__
+19
View File
@@ -0,0 +1,19 @@
#ifndef Components_Sphere_h__
#define Components_Sphere_h__
#include "Component.h"
namespace Components
{
struct Sphere : Component
{
Sphere()
: Radius(1.f){ }
float Radius;
};
}
#endif // Components_Sphere_h__