UCharacterMovementComponent::ShouldCheckForValidLandingSpot

Determine whether we should try to find a valid landing spot after an impact with an invalid one (based on the Hit result).

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 ShouldCheckForValidLandingSpot
(
    float DeltaTime,
    const FVector & Delta,
    const FHitResult & Hit
) const

Remarks

Determine whether we should try to find a valid landing spot after an impact with an invalid one (based on the Hit result). For example, landing on the lower portion of the capsule on the edge of geometry may be a walkable surface, but could have reported an unwalkable impact normal.

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