How to prevent AI from going Backwards
Hi,
I am trying to make AI cars (wheel colliders) that uses navmesh for path finding (it's really hard Because no videos or tutorials or even an asset to buy from asset store).So I decided to make one
So i created an empty game object and add navmeshagent to it. then i created a simple car controller to that controls the wheel colliders to follow the agent
So the agent picks a random location on the mesh and the car follows it
And it works very well. But, sometimes the agent turn 180 degrees and go the opposite direction of the car
I think the simple way to fix this is to prevent the agent from going backwards (or turning 180 degrees around himself)
So how to achieve this :
1- how can i detect the steering (turning) angle before it happens ? (So i can check if this angle > 90 then the agent will pick another way point)
Your answer
Follow this Question
Related Questions
Navmesh Agent isStopped not working, can't get navemesh agent to stop. 1 Answer
Problem in steering with wheelcolliders 0 Answers
How to get car to reverse using motorTorque/WheelColliders? 0 Answers
MOBA: Pathfinding and Killing creeps 0 Answers
What would cause result from Calculate Path to differ from SetDestination 1 Answer