23-06-2021, 01:35 PM
(This post was last modified: 23-06-2021, 01:36 PM by josemendez.)
Hi there!
Correct update order in Unity is key. Make sure you update the nozzle transform before simulation. Otherwise, the nozzle will move after the rope has been simulated every frame, resulting in a delay.
When using ObiFixedUpdater (the default updater component), the simulation is updated in FixedUpdate() which happens before Update(). See:
https://docs.unity3d.com/Manual/ExecutionOrder.html
Either subscribe to the solver's OnBeginStep event and update the nozzle movement there, or use ObiLateUpdater.
Correct update order in Unity is key. Make sure you update the nozzle transform before simulation. Otherwise, the nozzle will move after the rope has been simulated every frame, resulting in a delay.
When using ObiFixedUpdater (the default updater component), the simulation is updated in FixedUpdate() which happens before Update(). See:
https://docs.unity3d.com/Manual/ExecutionOrder.html
Either subscribe to the solver's OnBeginStep event and update the nozzle movement there, or use ObiLateUpdater.