Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UCharacterMovementComponent
Description
Limits the air control to use during falling movement, given an impact while falling. This function is used internally by PhysFalling().
| Name | LimitAirControl |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h |
| Include Path | #include "GameFramework/CharacterMovementComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/CharacterMovementComponent.cpp |
virtual FVector LimitAirControl
(
float DeltaTime,
const FVector & FallAcceleration,
const FHitResult & HitResult,
bool bCheckForValidLandingSpot
)
Modified air control acceleration to use during falling movement.
Parameters
| Name | Remarks |
|---|---|
| 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
- PhysFalling()