9 #include <componentptr.h>
10 #include <inputcomponent.h>
11 #include <orthocameracomponent.h>
12 #include <glm/glm.hpp>
16 class OrthoControllerInstance;
17 class PointerPressEvent;
18 class PointerMoveEvent;
19 class PointerReleaseEvent;
20 class TransformComponentInstance;
21 class TransformComponent;
38 virtual void getDependentComponents(std::vector<rtti::TypeInfo>& components)
const override;
40 float mMovementSpeed = 1.0f;
41 float mZoomSpeed = 0.005f;
69 void enable(
const glm::vec3& cameraPos,
const glm::quat& cameraRotate);
101 void updateCameraProperties();
113 TransformComponentInstance* mTransformComponent =
nullptr;
114 bool mEnabled =
true;
115 float mCameraScale = 1.0f;
116 float mCameraScaleAtClick = 0.0f;
117 EMode mMode = EMode::None;
118 glm::vec2 mMousePosAtClick;
119 glm::vec2 mMousePosNow;
120 glm::vec3 mTranslateAtClick;