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
Post a Comment