FallingState ​
Inherits: MovementState < RefCounted
FallingState represents the state when an entity is in mid-air, typically after walking off an edge. It focuses solely on playing the appropriate animation for falling, and on telling the entity how far it fell when it lands (entity_landed: the camera shake of a hard landing listens to it). Key features:
Description ​
- Plays the falling animation using blending
- Simple blending to other states handled by EntityStateComponent
Methods ​
void | enter() |
void | exit() |
Method descriptions ​
void enter() ​
Called when entering the falling state
void exit() ​
Called when exiting the falling state