Hi
is there anyway to change the z rotation of a NavMeshAgent when it goes up a hill or slope so that the object it is assigned to matched the ground angle.
Thanks
Craig
Hi
is there anyway to change the z rotation of a NavMeshAgent when it goes up a hill or slope so that the object it is assigned to matched the ground angle.
Thanks
Craig
You can use NavMeshAgent.Raycast to find the normal of the nav mesh under your agent. From that you could work out the angle the agent should be at. I don’t think there is an automatic way to do this.
OK Thanks