Support Forum

I confirmed the settarget method, and the coordinates of the target point and the current transformation are different. Why does each calculation return vec.zero?

After calculating the target point, I call the settarget method to assign the value, and then pass in the time to retrieve the required displacement. Is there any problem with this use? Why does it always return vec.zero?

rvoAgent.CalculatedTargetPoint is always equal to the world coordinate of the model, and I found that settarget cannot change the value of calculatedTargetPoint, so every time I calculate it is vec.zero. Is there something wrong with me? very broken :sob:

Hi

Do you have a RVOSimulator in your scene?

Note that CalculatedTargetPoint is always 1 frame behind. So SetTarget will only affect the outcome for the next frame.