|
Oxygen Engine
Modern C++ 3D Engine using OpenGL
|
Control a camera like an FPS one (No clip, ignores any collisions). More...
#include <OxygenEngine/component/fps_camera.h>
Classes | |
| struct | KeyBindings |
| Controls to move the FPS Camera. More... | |
Public Member Functions | |
| FpsCamera (oe::scene::Camera *camera) noexcept | |
| void | update (const core::EventHandler &event_handler, const std::chrono::nanoseconds delta) |
| Update camera transform from the input. | |
Public Attributes | |
| KeyBindings | controls |
| Keybindings to control the FPS Camera. | |
| float | default_speed = 6.0f |
| Camera Speed. | |
| float | sensitivity = 0.001f |
| FPS Camera mouse sensitivity. | |
| float | speed_factor = 4.f |
| Speed factor. | |
| float | slow_factor = 0.05f |
| Slow factor. | |
| oe::scene::Camera * | ptr_camera |
| pointer to a camera to control | |
Control a camera like an FPS one (No clip, ignores any collisions).
| float oe::component::FpsCamera::speed_factor = 4.f |
Speed factor.
Run mode will faster (by multiply) speed by this value, walk mode will slower by this value