- Home /
AI character stuck
Hi All,
I have an AI character patrolling in my game scene ... however at some point he was not able to pass a hill and just keep running in place (no move anywhere).
My plan is to write script that compare the movement of the character with the current position and then rotate to another direction if its not moving ....
Do you have any other suggestion for solving the issue ?.
Thank you, appreciate the help very much.
Best regards, Jaya
Answer by Fattie · Jun 27, 2012 at 01:10 PM
What about this, add a behaviour,
where am I now
every 3 seconds, look again at where I am
am I in the same place as 3 seconds ago?
if so print a message "I think I'm stuck"
and turn 30 degrees to the left
Hi Fattie,
Thanks for the suggestion ... let me try that.
Regards,
Your answer
Follow this Question
Related Questions
NavMesh.SamplePosition returns point outside the NavMesh 0 Answers
nav mesh agent not following properly 0 Answers
Way to find closest point in a specific area on navmesh. 0 Answers
CS0246: The type or name space name ''NavMeshSurface'' plz some help 0 Answers
Navmesh Agent "move back" when player comes to close? 1 Answer