How to wait until next simulation step?

Hello,

I am using RVOController.SetTarget to detect where a character will go, and I would like the game to only start moving the character after SetTarget has taken effect. According to the documentation, SetTarget takes effect on the next simulation step. How can I have the game detect when the next simulation step has started? Currently I am using something like “yield return new WaitForSeconds(simulator.DesiredDeltaTime * 2f);” to try to do so, but this seems very crude and hacky and I’d prefer to use a more robust solution.

Thanks!

Hi

Currently there is no way to precisely wait for this. However if you set the ‘simulation fps’ on the RVOSimulator component then you can just wait a single frame and it should be done.