UCharacterMovementComponent::ShouldLimitAirControl

Returns true if falling movement should limit air control.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h

Include

#include "GameFramework/CharacterMovementComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/CharacterMovementComponent.cpp

Syntax

virtual bool ShouldLimitAirControl
(
    float DeltaTime,
    const FVector & FallAcceleration
) const

Remarks

Returns true if falling movement should limit air control. Limiting air control prevents input acceleration during falling movement from allowing velocity to redirect forces upwards while falling, which could result in slower falling or even upward boosting.

Returns

Modified air control acceleration to use during falling movement.

Parameters

Parameter

Description

DeltaTime

Time step for the current update.

FallAcceleration

Acceleration used during movement.

HitResult

Result of impact.

bCheckForValidLandingSpot

If true, will use IsValidLandingSpot() to determine if HitResult is a walkable surface. If false, this check is skipped.

See Also

GetFallingLateralAcceleration()

BoostAirControl()

GetAirControl()

LimitAirControl()Limits the air control to [use](API\Runtime\Engine\use) during falling movement

given an impact while falling. This function is used internally by PhysFalling().

PhysFalling()

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss