Navigation Mesh

 Unreal

void APlayerChar::Tick(float DeltaTime)

{

Super::Tick(DeltaTime);

        AActor* thePlyr;

UNavigationSystem::SimpleMoveToActor(GetController(), thePlyr);

}

Unity

NavMeshAgent agnt;

private void Update() => agnt.SetDestination(thePlyr.transform.position);

Comments

Popular posts from this blog

Open Level

Animation

Play Sound