Added physics components. 2014:04:05 02:57.
This commit is contained in:
@@ -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__
|
||||
@@ -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__
|
||||
@@ -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__
|
||||
@@ -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__
|
||||
Reference in New Issue
Block a user