Autorepath vs RepathRate

Hi there,

I am tweaking some values for the repath, and I’ve seen that, at least from the RichAI, I have access to autoRepath (which has mode, interval and maximumInterval) and also the repathRate. I wonder what’s the reason of having this two ways of repathing, and also wonder which one is in use if I set both.

Thanks!

Hi

This is covered quite well in the documentation for each field I think https://www.arongranberg.com/astar/documentation/dev_4_3_39_4d73c4d8/autorepathpolicy.html.
Interval and maximum interval are stored as separate fields to allow people to easily switch the mode without loosing their settings.

Hi!

I meant the repathRate field inside the AIBase (https://www.arongranberg.com/astar/documentation/dev_4_3_39_4d73c4d8/aibase.html#repathRate), which is not part of the AutoRepath class, versus the AutoRepath property options.

That’s just for backwards compatibility:

image

Oh I see, cool, thank you!