Movement/rotation queue fixed and Simon force push

This commit is contained in:
ViktorLjung
2014-05-31 03:52:39 +02:00
parent c489547294
commit a142d368a7
18 changed files with 433 additions and 202 deletions
+3
View File
@@ -15,6 +15,9 @@ namespace Components
EntityID ShotTemplate;
float ShotSpeed;
float LowerRotationLimit;
float UpperRotationLimit;
virtual BarrelSteering* Clone() const override { return new BarrelSteering(*this); }
};
+20
View File
@@ -0,0 +1,20 @@
#ifndef Components_Follow_h__
#define Components_Follow_h__
#include "Component.h"
#include "Entity.h"
namespace Components
{
struct Follow : Component
{
EntityID Entity;
glm::vec3 FollowAxis;
float Distance;
virtual Follow* Clone() const override { return new Follow(*this); }
};
}
#endif // !Components_Follow_h__
+2 -1
View File
@@ -9,7 +9,8 @@ namespace Components
struct TriggerMove : Component
{
EntityID Entity;
float Time;
float Speed;
glm::vec3 StartPosition;
glm::vec3 GoalPosition;
virtual TriggerMove* Clone() const override { return new TriggerMove(*this); }
};