coastline 0.0.4
Loading...
Searching...
No Matches
freecamera.h
Go to the documentation of this file.
1#pragma once
2
3#include <array>
4
5namespace coastline {
6
8class FreeCamera {
9public:
11 void Reset();
18 void
19 Move(float seconds, const std::array<float, 3> &movement, const std::array<float, 2> &rotation);
22
23private:
24 std::array<float, 3> m_position{};
25 float m_yaw = 0.0f;
26 float m_pitch = 0.0f;
27};
28
29} // namespace coastline
A movable camera relative to the normal eye space of menus and logos.
Definition freecamera.h:8
std::array< float, 16 > View() const
void Move(float seconds, const std::array< float, 3 > &movement, const std::array< float, 2 > &rotation)
Move independently of simulation time.
void Reset()
Restore the position and orientation of the normal scene camera.
Definition assetimport.h:11