Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::component::FpsCamera Struct Reference

Control a camera like an FPS one (No clip, ignores any collisions). More...

#include <OxygenEngine/component/fps_camera.h>

Collaboration diagram for oe::component::FpsCamera:

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::Cameraptr_camera
 pointer to a camera to control

Detailed Description

Control a camera like an FPS one (No clip, ignores any collisions).

Member Data Documentation

◆ speed_factor

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


The documentation for this struct was generated from the following file: