Added physics components. 2014:04:05 02:57.

This commit is contained in:
Stiffly
2014-04-05 02:57:29 +02:00
committed by sippeangelo
parent e2d8235169
commit b4c8d8ca19
6 changed files with 84 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#ifndef Components_BoxShape_h__
#define Components_BoxShape_h__
#include "Component.h"
namespace Components
{
struct BoxShape : Component
{
float height, width;
};
}
#endif // !Components_BoxShape_h__
+17
View File
@@ -0,0 +1,17 @@
#ifndef Components_CustomShape_h__
#define Components_CustomShape_h__
#include "Component.h"
#include <string>
namespace Components
{
struct CustomShape : Component
{
std::string fileName;
};
}
#endif // !Components_CustomShape_h__
+19
View File
@@ -0,0 +1,19 @@
#ifndef Components_Physics_h__
#define Components_Physics_h__
//#include "btBulletDynamicsCommon.h"
#include "Component.h"
namespace Components
{
struct Physics : Component
{
float Mass;
float Inertia[3];
//btRigidBody RigidBody;
};
}
#endif // !Components_Physics_h__
+16
View File
@@ -0,0 +1,16 @@
#ifndef Components_SphereShape_h__
#define Components_SphereShape_h__
#include "Component.h"
namespace Components
{
struct SphereShape : Component
{
float radius;
};
}
#endif // !Components_SphereShape_h__