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__
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user