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).

Choose your operating system:

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.