Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Custom ObiUpdater
#2
Hi Jordan,

You're not calling Interpolate() anywhere. This function updates rendering by interpolating the previous and current physics states. Since there's no call to Interpolate(), rendering is not updated at all.

Interpolate() should generally be called at the end of all physics steps in the frame. If you intend to have a single UpdateCloth() call that does everything, then call Interpolate() right after EndStep(). See ObiFixedUpdater or ObiLateUpdater for reference.

Note that passing (3, 10) to your function would result in an effective timestep of 0.3 seconds, which imho is way too much and will result in really inaccurate simulation. A typical timestep in a realtime physics engine would be 0.02 (Unity's default, btw). Remember that shorter timestep = better accuracy.
Reply


Messages In This Thread
Custom ObiUpdater - by JordanTama - 18-10-2020, 01:10 AM
RE: Custom ObiUpdater - by josemendez - 19-10-2020, 07:24 AM