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__
+4
View File
@@ -107,16 +107,20 @@
<ClInclude Include="..\..\src\Color.h" />
<ClInclude Include="..\..\src\Component.h" />
<ClInclude Include="..\..\src\Components\Bounds.h" />
<ClInclude Include="..\..\src\Components\BoxShape.h" />
<ClInclude Include="..\..\src\Components\Camera.h" />
<ClInclude Include="..\..\src\Components\Collision.h" />
<ClInclude Include="..\..\src\Components\CustomShape.h" />
<ClInclude Include="..\..\src\Components\DirectionalLight.h" />
<ClInclude Include="..\..\src\Components\FreeSteering.h" />
<ClInclude Include="..\..\src\Components\Input.h" />
<ClInclude Include="..\..\src\Components\Model.h" />
<ClInclude Include="..\..\src\Components\ParticleEmitter.h" />
<ClInclude Include="..\..\src\Components\Physics.h" />
<ClInclude Include="..\..\src\Components\PointLight.h" />
<ClInclude Include="..\..\src\Components\PowerUp.h" />
<ClInclude Include="..\..\src\Components\SoundEmitter.h" />
<ClInclude Include="..\..\src\Components\SphereShape.h" />
<ClInclude Include="..\..\src\Components\Sprite.h" />
<ClInclude Include="..\..\src\Components\Stat.h" />
<ClInclude Include="..\..\src\Components\Template.h" />
@@ -121,6 +121,18 @@
<ClInclude Include="..\..\src\Components\FreeSteering.h">
<Filter>Components</Filter>
</ClInclude>
<ClInclude Include="..\..\src\Components\Physics.h">
<Filter>Components</Filter>
</ClInclude>
<ClInclude Include="..\..\src\Components\SphereShape.h">
<Filter>Components</Filter>
</ClInclude>
<ClInclude Include="..\..\src\Components\BoxShape.h">
<Filter>Components</Filter>
</ClInclude>
<ClInclude Include="..\..\src\Components\CustomShape.h">
<Filter>Components</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="..\..\src\Shaders\AABB.frag.glsl">