A* Seek Problem

Storm

New member
Hi,

In my trial, I click a character and it seeks to it until within distance criteria met. In my first click/selection, it works perfectly. However, in my second click it does not work. To make it work, i need to change the position of my character and it works again... Is it a bug? Additionally, after seek complete, the character does not look towards the target, rotate towards is not available in A* package, what should I do?

Thanks,

 
I solved by voktu's fix. It works now.

fixed locally by replacing `agent.remainingDistance <= arriveDistance.Value` by `(agent.destination - agent.position).sqrMagnitude <= arriveDistance.Value * arriveDistance.Value` in the function `IAstarAIMovement.HasArrived()`.
 
Top