The object class supports camera movement with arrow keys.
More...
#include <Camera/CFpsMoveCamera.h>
|
| struct | SKeyMap |
| | Mapping between a direction and a keyboard key. More...
|
|
| enum | EMoveDirection {
MoveForward = 0
, MoveBackward
, StrafeLeft
, StrafeRight
,
DirectionCount
} |
| | Directions for FPS-style movement.
|
|
| virtual void | initComponent () |
| virtual void | updateComponent () |
| virtual void | endUpdate () |
| | Updates the camera position based on input state. Called at the end of the frame.
|
|
virtual bool | OnEvent (const SEvent &event) |
| void | setKeyMap (const std::vector< SKeyMap > &keyMap) |
| | Sets a custom key map for movement.
|
| void | setMoveSpeed (float s) |
| | Sets the movement speed.
|
|
const char * | getName () |
| virtual void | reset () |
| virtual void | startComponent () |
|
virtual void | onEnable (bool b) |
|
virtual void | onUpdateCullingLayer (u32 mask) |
| virtual CObjectSerializable * | createSerializable () |
| virtual void | loadSerializable (CObjectSerializable *object) |
|
void | setEnable (bool b) |
|
bool | isEnable () |
|
CGameObject * | getGameObject () |
|
void | setEnableSerializable (bool b) |
|
bool | isSerializable () |
|
void | addLinkComponent (CComponentSystem *comp) |
|
void | removeAllLink () |
|
virtual | ~IActivatorObject () |
| | Virtual destructor for polymorphic activator objects.
|
|
|
CCamera * | m_camera |
| | Pointer to the CCamera component.
|
|
std::vector< SKeyMap > | m_keyMap |
| | List of key mappings for movement.
|
|
bool | m_input [DirectionCount] |
| | Array tracking the pressed state of each move direction.
|
|
f32 | m_moveSpeed |
| | Movement speed multiplier.
|
|
CGameObject * | m_gameObject |
|
bool | m_enable |
|
bool | m_serializable |
|
std::vector< CComponentSystem * > | m_linkComponent |
|
|
static int | useComponent (CComponentSystem *used) |
|
void | setOwner (CGameObject *obj) |
The object class supports camera movement with arrow keys.
◆ endUpdate()
| virtual void Skylicht::CFpsMoveCamera::endUpdate |
( |
| ) |
|
|
virtual |
◆ initComponent()
| virtual void Skylicht::CFpsMoveCamera::initComponent |
( |
| ) |
|
|
virtual |
◆ setKeyMap()
| void Skylicht::CFpsMoveCamera::setKeyMap |
( |
const std::vector< SKeyMap > & | keyMap | ) |
|
|
inline |
Sets a custom key map for movement.
- Parameters
-
| keyMap | Vector of SKeyMap structures. |
◆ setMoveSpeed()
| void Skylicht::CFpsMoveCamera::setMoveSpeed |
( |
float | s | ) |
|
|
inline |
Sets the movement speed.
- Parameters
-
◆ updateComponent()
| virtual void Skylicht::CFpsMoveCamera::updateComponent |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following file: