UCharacterMovementComponent::TryToLeaveNavWalking

Checks to see if the current location is not encroaching blocking geometry so the character can leave NavWalking.

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 TryToLeaveNavWalking()

Remarks

Checks to see if the current location is not encroaching blocking geometry so the character can leave NavWalking. Restores collision settings and adjusts character location to avoid getting stuck in geometry. If it's not possible, MovementMode change will be delayed until character reach collision free spot.

Returns

True if movement mode was successfully changed

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