NavmeshAgent jogador não paralelo à encosta da colina quando se move sobre a colina
NavmeshAgent player notparalel à inclinação da colina ao mover-se sobre a colina. Na superfície do avião, está indo be
AbaixoImage propriedades de navMesh e playerhttps: //ibb.co/fijmo
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
public class SampleAgentScript : MonoBehaviour {
public Transform target ;
NavMeshAgent agent;
// private static bool start1=false , start2=false, start3;
// Use this for initialization
void Start()
{
agent = GetComponent<NavMeshAgent>();
}
void Update()
{
//if white button click moves to targer-1
agent.SetDestination(target.position);
}
}