UCharacterMovementComponent::ProjectLocationFromNavMesh

Attempts to better align navmesh walking characters with underlying geometry (sometimes navmesh can differ quite significantly from geometry).

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 FVector ProjectLocationFromNavMesh
(
    float DeltaSeconds,
    const FVector & CurrentFeetLocation,
    const FVector & TargetNavLocation,
    float UpOffset,
    float DownOffset
)

Remarks

Attempts to better align navmesh walking characters with underlying geometry (sometimes navmesh can differ quite significantly from geometry). Updates CachedProjectedNavMeshHitResult, access this for more info about hits.