FreeSteeringSystem updated to allow for controller input

This commit is contained in:
2014-05-17 00:50:45 +02:00
parent 33b14b1859
commit 2a28f65c37
2 changed files with 59 additions and 71 deletions
+4 -2
View File
@@ -4,6 +4,7 @@
#include "Components/Transform.h"
#include "Components/FreeSteering.h"
#include "InputController.h"
#include "Events/LockMouse.h"
namespace Systems
{
@@ -31,11 +32,12 @@ class FreeSteeringSystem::FreeSteeringInputController : InputController
public:
FreeSteeringInputController(std::shared_ptr<::EventBroker> eventBroker)
: InputController(eventBroker)
, SpeedMultiplier(1.f)
, SpeedMultiplier(0.f)
, OrientationActive(false) { }
glm::vec3 Movement;
glm::quat Orientation;
glm::vec3 MouseOrientation;
glm::vec3 ControllerOrientation;
float SpeedMultiplier;
bool OrientationActive;