Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Gloth dragging behind parent, help
#4
(21-12-2020, 01:38 PM)zagoalie Wrote: Previously i was using unity cloth to do the same thing, and i didn't notice this happening then, does obi solve in a different order to defult unity cloth?

Yes. Unity cloth is updated in LateUpdate(), which results in highly unphysical simulation as the delta time for the simulation varies every frame.

You can achieve the same in Obi by using the ObiLateUpdater component instead of ObiFixedUpdater. See:
http://obi.virtualmethodstudio.com/tutor...aters.html
http://obi.virtualmethodstudio.com/tutor...cture.html

In fact, you can update Obi whenever you want by writing your own Updater component. However I'd recommend doing the proper thing and just updating your input before physics.

Here's a comparison between Unity's built-in cloth and Obi. As you can see, updating  physics with a variable timestep causes cloth to jitter, gain momentum and never come to rest:
Reply


Messages In This Thread
Gloth dragging behind parent, help - by zagoalie - 21-12-2020, 01:16 PM
RE: Gloth dragging behind parent, help - by josemendez - 21-12-2020, 01:46 PM