Euphoria
|
#include <fpscontroller.h>
Public Member Functions | |
FpsController () | |
void | look (float delta_rot, float delta_look) |
void | move_left (bool down) |
void | move_right (bool down) |
void | move_forward (bool down) |
void | move_backward (bool down) |
void | move_up (bool down) |
void | move_down (bool down) |
void | on_key (Key key, bool down) |
void | update (float delta) |
void | look_in_direction (const unit3f &v) |
quatf | get_rotation () const |
Static Public Member Functions | |
static quatf | calc_rotation (const Angle &rotation_angle, const Angle &look_angle) |
Public Attributes | |
Angle | rotation_angle |
Angle | look_angle |
bool | is_left_down = false |
bool | is_right_down = false |
bool | is_forward_down = false |
bool | is_backward_down = false |
bool | is_up_down = false |
bool | is_down_down = false |
vec3f | position |
float | move_speed = 3.0f |
Sensitivity | look_sensitivity |
Detailed Description
Definition at line 11 of file fpscontroller.h.
Constructor & Destructor Documentation
◆ FpsController()
eu::core::FpsController::FpsController | ( | ) |
Definition at line 7 of file fpscontroller.cc.
Member Function Documentation
◆ calc_rotation()
|
static |
Definition at line 131 of file fpscontroller.cc.
◆ get_rotation()
quatf eu::core::FpsController::get_rotation | ( | ) | const |
Definition at line 145 of file fpscontroller.cc.
◆ look()
void eu::core::FpsController::look | ( | float | delta_rot, |
float | delta_look | ||
) |
Definition at line 15 of file fpscontroller.cc.
◆ look_in_direction()
void eu::core::FpsController::look_in_direction | ( | const unit3f & | v | ) |
Definition at line 152 of file fpscontroller.cc.
◆ move_backward()
void eu::core::FpsController::move_backward | ( | bool | down | ) |
Definition at line 39 of file fpscontroller.cc.
◆ move_down()
void eu::core::FpsController::move_down | ( | bool | down | ) |
Definition at line 49 of file fpscontroller.cc.
◆ move_forward()
void eu::core::FpsController::move_forward | ( | bool | down | ) |
Definition at line 34 of file fpscontroller.cc.
◆ move_left()
void eu::core::FpsController::move_left | ( | bool | down | ) |
Definition at line 24 of file fpscontroller.cc.
◆ move_right()
void eu::core::FpsController::move_right | ( | bool | down | ) |
Definition at line 29 of file fpscontroller.cc.
◆ move_up()
void eu::core::FpsController::move_up | ( | bool | down | ) |
Definition at line 44 of file fpscontroller.cc.
◆ on_key()
void eu::core::FpsController::on_key | ( | Key | key, |
bool | down | ||
) |
Definition at line 55 of file fpscontroller.cc.
◆ update()
void eu::core::FpsController::update | ( | float | delta | ) |
Definition at line 75 of file fpscontroller.cc.
Member Data Documentation
◆ is_backward_down
bool eu::core::FpsController::is_backward_down = false |
Definition at line 18 of file fpscontroller.h.
◆ is_down_down
bool eu::core::FpsController::is_down_down = false |
Definition at line 20 of file fpscontroller.h.
◆ is_forward_down
bool eu::core::FpsController::is_forward_down = false |
Definition at line 17 of file fpscontroller.h.
◆ is_left_down
bool eu::core::FpsController::is_left_down = false |
Definition at line 15 of file fpscontroller.h.
◆ is_right_down
bool eu::core::FpsController::is_right_down = false |
Definition at line 16 of file fpscontroller.h.
◆ is_up_down
bool eu::core::FpsController::is_up_down = false |
Definition at line 19 of file fpscontroller.h.
◆ look_angle
Angle eu::core::FpsController::look_angle |
Definition at line 14 of file fpscontroller.h.
◆ look_sensitivity
Sensitivity eu::core::FpsController::look_sensitivity |
Definition at line 23 of file fpscontroller.h.
◆ move_speed
float eu::core::FpsController::move_speed = 3.0f |
Definition at line 22 of file fpscontroller.h.
◆ position
vec3f eu::core::FpsController::position |
Definition at line 21 of file fpscontroller.h.
◆ rotation_angle
Angle eu::core::FpsController::rotation_angle |
Definition at line 13 of file fpscontroller.h.
The documentation for this struct was generated from the following files:
- libs/core/src/core/fpscontroller.h
- libs/core/src/core/fpscontroller.cc