#include <controller.h>
◆ ControllerComponent()
tram::ControllerComponent::ControllerComponent |
( |
| ) |
|
|
protecteddefault |
◆ ~ControllerComponent()
tram::ControllerComponent::~ControllerComponent |
( |
| ) |
|
|
protecteddefault |
◆ ApplyDynamics()
void tram::ControllerComponent::ApplyDynamics |
( |
| ) |
|
|
protected |
◆ Crouch()
void tram::ControllerComponent::Crouch |
( |
| ) |
|
◆ EventHandler()
void tram::ControllerComponent::EventHandler |
( |
Event & |
event | ) |
|
|
inlinevirtual |
◆ GetLookDirection()
quat tram::ControllerComponent::GetLookDirection |
( |
| ) |
const |
|
inline |
◆ Jump()
void tram::ControllerComponent::Jump |
( |
| ) |
|
◆ Move()
void tram::ControllerComponent::Move |
( |
vec3 |
local_direction | ) |
|
◆ Push()
void tram::ControllerComponent::Push |
( |
vec3 |
direction | ) |
|
◆ RecoverFromCollisions()
void tram::ControllerComponent::RecoverFromCollisions |
( |
| ) |
|
|
protected |
◆ ResetMove()
void tram::ControllerComponent::ResetMove |
( |
| ) |
|
|
protected |
◆ Run()
void tram::ControllerComponent::Run |
( |
| ) |
|
◆ SetCollisionGroup()
void tram::ControllerComponent::SetCollisionGroup |
( |
uint32_t |
group | ) |
|
|
inline |
◆ SetCollisionSize()
void tram::ControllerComponent::SetCollisionSize |
( |
float |
width, |
|
|
float |
height, |
|
|
float |
crouch_height |
|
) |
| |
|
inline |
◆ SetCrouchSpeed()
void tram::ControllerComponent::SetCrouchSpeed |
( |
float |
crouch_speed | ) |
|
|
inline |
◆ SetFriction()
void tram::ControllerComponent::SetFriction |
( |
float |
friction | ) |
|
|
inline |
◆ SetLookDirection()
void tram::ControllerComponent::SetLookDirection |
( |
quat |
direction | ) |
|
|
inline |
◆ SetRunSpeed()
void tram::ControllerComponent::SetRunSpeed |
( |
float |
run_speed | ) |
|
|
inline |
◆ SetStepHeight()
void tram::ControllerComponent::SetStepHeight |
( |
float |
height, |
|
|
float |
crouch_height |
|
) |
| |
|
inline |
◆ SetWalkSpeed()
void tram::ControllerComponent::SetWalkSpeed |
( |
float |
walk_speed | ) |
|
|
inline |
◆ SetWallCollisionCallback()
◆ Start()
void tram::ControllerComponent::Start |
( |
| ) |
|
|
virtual |
◆ TurnLeft()
void tram::ControllerComponent::TurnLeft |
( |
| ) |
|
◆ TurnRight()
void tram::ControllerComponent::TurnRight |
( |
| ) |
|
◆ Update()
void tram::ControllerComponent::Update |
( |
| ) |
|
|
static |
Updates the ControllerComponents.
Updates all of the ControllerComponents. Should be called once per update cycle.
◆ collision_group
◆ collision_height
float tram::ControllerComponent::collision_height = 1.85f |
|
protected |
◆ collision_height_crouch
float tram::ControllerComponent::collision_height_crouch = 0.5f |
|
protected |
◆ collision_width
float tram::ControllerComponent::collision_width = 0.35f |
|
protected |
◆ crouch_collision
◆ crouch_speed
float tram::ControllerComponent::crouch_speed = 0.05f |
|
protected |
◆ crouching
bool tram::ControllerComponent::crouching = false |
|
protected |
◆ friction
float tram::ControllerComponent::friction = 0.89f |
|
protected |
◆ is_in_air
bool tram::ControllerComponent::is_in_air = false |
|
protected |
◆ look_direction
quat tram::ControllerComponent::look_direction = {1.0f, 0.0f, 0.0f, 0.0f} |
|
protected |
◆ move_direction
vec3 tram::ControllerComponent::move_direction = {0.0f, 0.0f, 0.0f} |
|
protected |
◆ physics_body
◆ run_speed
float tram::ControllerComponent::run_speed = 0.2f |
|
protected |
◆ running
bool tram::ControllerComponent::running = false |
|
protected |
◆ standing_on
id_t tram::ControllerComponent::standing_on = 0 |
|
protected |
◆ standing_on_prev
id_t tram::ControllerComponent::standing_on_prev = 0 |
|
protected |
◆ standing_pos
vec3 tram::ControllerComponent::standing_pos |
|
protected |
◆ step_height
float tram::ControllerComponent::step_height = 0.35f |
|
protected |
◆ step_height_crouch
float tram::ControllerComponent::step_height_crouch = 0.15f |
|
protected |
◆ velocity
vec3 tram::ControllerComponent::velocity = {0.0f, 0.0f, 0.0f} |
|
protected |
◆ walk_collision
◆ walk_speed
float tram::ControllerComponent::walk_speed = 0.1f |
|
protected |
The documentation for this class was generated from the following files:
- C:/Users/Poga/Desktop/painis/tram-sdk/src/components/controller.h
- C:/Users/Poga/Desktop/painis/tram-sdk/src/components/controller.cpp