Navigation
API > API/Plugins > API/Plugins/Mover > API/Plugins/Mover/DefaultMovementSet > API/Plugins/Mover/DefaultMovementSet/Modes
Inheritance Hierarchy
References
| Module | Mover |
| Header | /Engine/Plugins/Experimental/Mover/Source/Mover/Public/DefaultMovementSet/Modes/FallingMode.h |
| Include | #include "DefaultMovementSet/Modes/FallingMode.h" |
Syntax
UCLASS (Blueprintable, BlueprintType)
class UFallingMode : public UBaseMovementMode
Remarks
FallingMode: a default movement mode for moving through the air and jumping, typically influenced by gravity and air control
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | AirControlPercentage | When falling, amount of movement control available to the actor. 0 = no control, 1 = full control | |
| bool | bShouldClampTerminalVerticalSpeed | When exceeding maximum vertical speed, should it be enforced via a hard clamp? If false, VerticalFallingDeceleration will be used for a smoother transition to the terminal speed limit. | |
| TObjectPtr< const UCommonLegacyMovementSettings > | CommonLegacySettings | ||
| float | FallingDeceleration | Deceleration to apply to air movement when falling slower than terminal velocity. | |
| FMover_OnLanded | OnLanded | Broadcast when this actor lands on a valid surface. | |
| float | OverTerminalSpeedFallingDeceleration | Deceleration to apply to air movement when falling faster than terminal velocity Note: This is NOT applied to vertical velocity, only movement plane velocity | |
| float | TerminalMovementPlaneSpeed | If the actor's movement plane velocity is greater than this speed falling will start applying OverTerminalSpeedFallingDeceleration instead of FallingDeceleration The expected behavior is to set OverTerminalSpeedFallingDeceleration higher than FallingDeceleration so the actor will slow down faster when going over TerminalMovementPlaneSpeed. | |
| float | TerminalVerticalSpeed | If the actors vertical velocity is greater than this speed VerticalFallingDeceleration will be applied to vertical velocity | |
| float | VerticalFallingDeceleration | Deceleration to apply to vertical velocity when it's greater than TerminalVerticalSpeed. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UFallingMode
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AttemptTeleport
(
USceneComponent* UpdatedComponent, |
||
| void | CaptureFinalState
(
USceneComponent* UpdatedComponent, |
||
| void | ProcessLanded
(
const FFloorCheckResult& FloorResult, |
Is called at the end of the tick in falling mode. |
Overridden from UBaseMovementMode
| Type | Name | Description | |
|---|---|---|---|
| void | OnGenerateMove
(
const FMoverTickStartData& StartState, |
||
| void | OnRegistered
(
const FName ModeName |
||
| void | OnSimulationTick
(
const FSimulationTickParams& Params, |
||
| void |