FreeSteeringSystem updated to allow for controller input
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user