RichAI endReachedDistance


#1

Hi,

Is there any problem at endReachedDistance of RichAI?
It is trying to go to pivot of target, even for non zero endReachedDistance values.

On the other side this feature is working correctly for AIPath.


#2

Hi

The AIPath script has an option called ‘whenCloseToDestination’ which toggles between it stopping as soon as it comes within ‘end reached distance’ units from the destination and it wanting to continue all the way. Currently the RichAI script does not have this option yet.


#3

Thanks for answering and that great script Aron.

Is there any date whenCloseToDestination feature for RichAI or it is in the to do list?

Otherwise I will need to write it maybe you can give me some tips for that :slight_smile:


#4

Hi

No date at the moment.
The ‘Stop’ mode is almost equivalent to this code running in another script though:

void Update () {
     ai.isStopped = ai.reachedEndOfPath;
}