MovingState ​
Inherits: MovementState < RefCounted
Simplified MovingState - passes movement data to animation player using blending system
Variables ​
Vector3 | last_velocity | Vector3.ZERO |
Methods ​
void | enter() |
void | exit() |
void | update_from_navigation() |
void | update_with_input_data( input_vector: Vector2, is_walking: bool, is_crouched: bool ) |
Variable descriptions ​
Vector3 last_velocity = Vector3.ZERO ​
The velocity of the entity on the last step.
Method descriptions ​
void enter() ​
The entity starts to move.
void exit() ​
Leaves the state.
void update_from_navigation() ​
Called by MovementStateComponent during process_movement()
void update_with_input_data( input_vector: Vector2, is_walking: bool, is_crouched: bool ) ​
Called by WASD controllers to update movement with input data