Class BaseCameraController¶
Defined in File base_camera_controller.h
Class Documentation¶
-
class BaseCameraController¶
Public Functions
-
void move_up(float scale)¶
-
void move_right(float scale)¶
-
void move_forward(float scale)¶
-
void look_to(glm::vec2 screen_space_target)¶
-
void mark_as_moving()¶
-
void mark_as_stopped_moving()¶
-
inline bool is_moving() const¶
-
inline bool should_move_enabled() const¶
-
void archive(ArchiveObject &archive) const¶
-
void serialize(Serializer &serialize) const¶
-
void post_serialization(Entity entity, ResourceRegistry ®) const¶
Public Members
-
glm::vec3 position_delta = glm::vec3{0.f}¶
-
glm::vec2 mouse_delta = {0.f, 0.f}¶
-
glm::vec3 forward_direction = glm::vec3{0.54, -0.42, -0.72}¶
-
float speed = 2.f¶
-
float rotation_speed = 0.3f¶
-
bool moved = false¶
-
glm::vec2 last_mouse_position = {0.f, 0.f}¶
Public Static Functions
-
static BaseCameraController dearchive(ArchiveObject &archive)¶
-
static BaseCameraController deserialize(Deserializer &deserializer)¶
-
void move_up(float scale)¶