Box and Sphere Rigidbodies working
This commit is contained in:
@@ -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__
|
||||
@@ -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__
|
||||
@@ -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__
|
||||
Reference in New Issue
Block a user