Vehicle kind of working.

This commit is contained in:
ViktorLjung
2014-04-11 23:54:00 +02:00
parent f2259f712d
commit d7e65ff118
8 changed files with 153 additions and 7 deletions
+18
View File
@@ -0,0 +1,18 @@
#ifndef Components_Vehicle_h__
#define Components_Vehicle_h__
#include "Component.h"
namespace Components
{
struct Vehicle : Component
{
};
}
#endif // Components_Vehicle_h__
+31
View File
@@ -0,0 +1,31 @@
#ifndef Components_Wheel_h__
#define Components_Wheel_h__
#include "Component.h"
namespace Components
{
struct Wheel : Component
{
EntityID CarID;
glm::vec3 ConnectionPoint;
glm::vec3 Direction;
glm::vec3 Axle;
float SuspensionRestLength;
float Radius;
bool IsFrontWheel;
float SuspensionStiffness;
float SuspensionCompression;
float SuspensionDamping;
float MaxSuspensionTravelCm;
float FrictionSlip;
float MaxSuspensionForce;
};
}
#endif // Components_Wheel_h__