Provides an API for character controllers.
More...
#include <components/controller.h>
◆ Crouch()
virtual void tram::ControllerComponent::Crouch |
( |
| ) |
|
|
pure virtual |
◆ Fly()
virtual void tram::ControllerComponent::Fly |
( |
| ) |
|
|
pure virtual |
◆ GetLookDirection()
quat tram::ControllerComponent::GetLookDirection |
( |
| ) |
const |
|
inline |
◆ IsDebugInfoDraw()
bool tram::ControllerComponent::IsDebugInfoDraw |
( |
| ) |
|
|
static |
◆ Jump()
virtual void tram::ControllerComponent::Jump |
( |
| ) |
|
|
pure virtual |
◆ Move()
virtual void tram::ControllerComponent::Move |
( |
vec3 |
local_direction | ) |
|
|
pure virtual |
◆ Push()
virtual void tram::ControllerComponent::Push |
( |
vec3 |
direction | ) |
|
|
pure virtual |
◆ Run()
virtual void tram::ControllerComponent::Run |
( |
| ) |
|
|
pure virtual |
◆ SetCollisions()
void tram::ControllerComponent::SetCollisions |
( |
bool |
collide | ) |
|
|
inline |
◆ SetDebugInfoDraw()
void tram::ControllerComponent::SetDebugInfoDraw |
( |
bool |
draw | ) |
|
|
static |
◆ SetLookDirection()
void tram::ControllerComponent::SetLookDirection |
( |
quat |
direction | ) |
|
|
inline |
◆ TurnLeft()
virtual void tram::ControllerComponent::TurnLeft |
( |
| ) |
|
|
pure virtual |
◆ TurnRight()
virtual void tram::ControllerComponent::TurnRight |
( |
| ) |
|
|
pure virtual |
◆ Update()
void tram::ControllerComponent::Update |
( |
| ) |
|
|
static |
Updates the ControllerComponents.
Updates all of the ControllerComponents. Should be called once per update cycle. Best place to do so would be before updating any cameras, otherwise they will lag behind the controller for the rest of the frame.
◆ collide
bool tram::ControllerComponent::collide = true |
|
protected |
◆ look_direction
quat tram::ControllerComponent::look_direction = {1.0f, 0.0f, 0.0f, 0.0f} |
|
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