Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  [FIXED] Rope Lagging Behind Attachment
#4
Hi!

Thanks for sharing your project! thanks to it I was able to identify the issue: it's a problem with interpolation (doesn't happen when both solver and rigidbody interpolation are off). Luckily it's easy to fix: open up ObiFixedUpdater.cs and move line 67 to the top of the function, like this:

Quote:private void Update()
{
accumulatedTime += Time.deltaTime;

ObiProfiler.EnableProfiler();
Interpolate(Time.fixedDeltaTime, accumulatedTime);
 ObiProfiler.DisableProfiler();
}

The time passed to the Interpolate() function was one frame behind the actual time, resulting in attachments to interpolated rigidbodies lagging behind. Accumulating the frame time before passing it to the function is the right thing to do. Will include this fix in the next update.
Reply


Messages In This Thread
RE: Rope Lagging Behind Attachment - by josemendez - 09-03-2022, 09:21 AM