Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rod not following attachment correctly
#1
Hi there!

I have the same problem as someone here

http://obi.virtualmethodstudio.com/forum...attachment

on Obi 6.4, using Rod.

I've moved the accumulatedTime line to top of the Update, and the rod end still doesn't follow the rigidbody correctly. I've tried with and without interpolation enabled on both obi rod and the rigidbody.

Here is the gif

https://imgur.com/a/EwcaYFQ


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

ObiProfiler.EnableProfiler();
Interpolate(Time.fixedDeltaTime, accumulatedTime);
ObiProfiler.DisableProfiler();
}
Reply
#2
(10-08-2022, 05:12 PM)iamthehone Wrote: Hi there!

I have the same problem as someone here

http://obi.virtualmethodstudio.com/forum...attachment

on Obi 6.4, using Rod.

I've moved the accumulatedTime line to top of the Update, and the rod end still doesn't follow the rigidbody correctly. I've tried with and without interpolation enabled on both obi rod and the rigidbody.

Here is the gif

https://imgur.com/a/EwcaYFQ


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

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

The problem described in the thread you linked to only happens when enabling state interpolation in the solver. There should be zero delay when not using it.

In your gif, it looks like you're moving the rod attachment after the simulation for that frame has finished, so there's a 1 frame delay between both. How are you moving the hand around, and when are you updating the simulation? (that is, which ObiUpdater component are you using?)
Reply