- A* version: 5.4.4
- Unity version: 6.2
I’m using recast graph with richAI. When an agent is told to go by setting destination property, if it collides with another agent on the way, he can stop before reaching the destination. I can also cause that by standing on his way (the player has RVO controller on). In my case, the code is stuck here:
case AIState.Drinking:
if (navigator.reachedEndOfPath)
{
if (drinkingProgress < 10)
{
drinkingProgress += Time.deltaTime;
}
else
{
drinkingProgress = 0;
hydration += 600;
targetWaterBowl.ExtractWater(1);
if(targetWaterBowl.GetWaterAmount()<=0)
targetWaterBowl.water.SetActive(false);
}
}
else
{
navigator.destination = targetWaterBowl.transform.position;
}
if(hydration>=1200)
state=AIState.None;
break;
It is setting the destination without moving towards it.