8 #include <componentptr.h>
9 #include "perspcameracomponent.h"
10 #include <glm/glm.hpp>
14 class OrbitControllerInstance;
16 class KeyReleaseEvent;
17 class PointerPressEvent;
18 class PointerMoveEvent;
19 class PointerReleaseEvent;
20 class TransformComponentInstance;
21 class TransformComponent;
22 class KeyInputComponent;
23 class KeyInputComponent;
39 virtual void getDependentComponents(std::vector<rtti::TypeInfo>& components)
const override;
41 float mMovementSpeed = 0.5f;
42 float mRotateSpeed = 0.005f;
43 float mMinZoomDistance = 0.5f;
44 bool mLimitZoomDistance =
false;
73 void enable(
const glm::vec3& cameraPos,
const glm::vec3& lookAtPos);
79 void enable(
const glm::vec3& lookAtPos);
122 TransformComponentInstance* mTransformComponent =
nullptr;
123 EMode mMode = EMode::Idle;
124 glm::vec3 mLookAtPos;
125 bool mEnabled =
false;
const glm::vec3 getLookAtPos() const
Definition: orbitcontroller.h:89
glm::vec3 mLookAtPos
Property: "LookAtPosition" The world space position to look at.
Definition: orbitcontroller.h:45
Definition: cameracomponent.h:38
Definition: errorstate.h:19
Definition: orbitcontroller.h:31
Definition: inputevent.h:189
ComponentPtr< PerspCameraComponent > mPerspCameraComponent
Property: "PerspCameraComponent" Link to perspective camera that we are controlling.
Definition: orbitcontroller.h:47
void disable()
Definition: orbitcontroller.h:84
Definition: orbitcontroller.h:57
Definition: component.h:43
Definition: component.h:151
Definition: inputevent.h:202
Definition: templateapp.h:17
Definition: component.h:31
Definition: inputevent.h:176