31 void processEvent(
const SDL_Event& event,
float deltaTime);
35 void Update(
float deltaTime)
override;
42 std::unordered_map<SDL_Scancode, bool> keyStates;
44 bool m_viewportHovered =
false;
45 bool m_isFlying =
false;
46 float m_mouseSensitivity = 0.1f;
47 float m_movementSpeed = 50.0f;
Contains basic components like transform, camera, name components..
This file defines in engine CameraObject class.
Contains main Engine class.
This file defines the GameObject class.
EditorCameraObject(vex::Engine &engine, const std::string &name, SDL_Window *window)
Constructs an EditorCameraObject.
void setViewportHovered(bool hovered)
Sets whether the editor's viewport window is currently being hovered by the mouse.
void processEvent(const SDL_Event &event, float deltaTime)
Processes SDL events specific to the editor camera (e.g., mouse movement, key presses).
void Update(float deltaTime) override
Overrides the base GameObject Update for continuous camera movement and logic.
Basic camera object class. it only contains transform and camera components.
Class for interaction with engine systems.