#include <character_motor_script.hpp>
◆ CharacterMotorScript() [1/3]
mage::script::CharacterMotorScript::CharacterMotorScript |
( |
| ) |
|
◆ CharacterMotorScript() [2/3]
◆ CharacterMotorScript() [3/3]
◆ ~CharacterMotorScript()
mage::script::CharacterMotorScript::~CharacterMotorScript |
( |
| ) |
|
|
virtualdefault |
◆ GetVelocity()
F32 mage::script::CharacterMotorScript::GetVelocity |
( |
| ) |
const |
|
noexcept |
◆ Load()
void mage::script::CharacterMotorScript::Load |
( |
[[maybe_unused] ] Engine & |
engine | ) |
|
|
overridevirtual |
Loads this behavior script. Allows this behavior script to preform any pre-processing.
- Parameters
-
[in,out] | engine | A reference to the engine. |
- Exceptions
-
Exception | Failed to load this behavior script. |
Reimplemented from mage::BehaviorScript.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ SetVelocity()
void mage::script::CharacterMotorScript::SetVelocity |
( |
F32 |
velocity | ) |
|
|
noexcept |
◆ Update()
void mage::script::CharacterMotorScript::Update |
( |
[[maybe_unused] ] Engine & |
engine | ) |
|
|
overridevirtual |
Updates this behavior script.
This method is called once per frame.
- Parameters
-
[in,out] | engine | A reference to the engine. |
- Exceptions
-
Exception | Failed to update this behavior script. |
Reimplemented from mage::BehaviorScript.
◆ m_velocity
F32 mage::script::CharacterMotorScript::m_velocity |
|
private |