Obi Official Forum
Trouble using FinalIK with Obi Bone - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Trouble using FinalIK with Obi Bone (/thread-3570.html)



Trouble using FinalIK with Obi Bone - threex3 - 29-08-2022

Hi! 
I'm having some issues setting up FinalIK's CCD IK with Obi Bone. I have a pretty simple scene set up where Obi Bone works OK when CCD IK is disabled, but when it's enabled, the Obi Rope/Bone Curve is stuck in it's starting position (see screenshot).
I read about getting the script order correct so I threw a LateUpdate on the Obi Solver, but still having no luck. 
Sorry, I'm still pretty new at this  Tímido

[attachment=1471]
[attachment=1472]


RE: Trouble using FinalIK with Obi Bone - threex3 - 29-08-2022

I got it a bit better by turning off "Fix Transforms" in CCD IK, but it's still a little rigid, especially near the end of the chain. 

[attachment=1473]


RE: Trouble using FinalIK with Obi Bone - josemendez - 30-08-2022

(29-08-2022, 06:03 PM)threex3 Wrote: Hi! 
I'm having some issues setting up FinalIK's CCD IK with Obi Bone. I have a pretty simple scene set up where Obi Bone works OK when CCD IK is disabled, but when it's enabled, the Obi Rope/Bone Curve is stuck in it's starting position (see screenshot).
I read about getting the script order correct so I threw a LateUpdate on the Obi Solver, but still having no luck. 
Sorry, I'm still pretty new at this  Tímido

Hi!

If memory serves me well, FinalIK is updated in LateUpdate() by default. So updating Obi in LateUpdate too will not work, since the order in which Unity calls LateUpdate for different objects is undefined: it might work sometimes, might not work other times.

Best solution is probably to manually update FinalIK in one of Obi's solver callbacks, OnBeginStep should work:
http://obi.virtualmethodstudio.com/manual/6.3/scriptingsolver.html


RE: Trouble using FinalIK with Obi Bone - threex3 - 30-08-2022

(30-08-2022, 07:26 AM)josemendez Wrote: Hi!

If memory serves me well, FinalIK is updated in LateUpdate() by default. So updating Obi in LateUpdate too will not work, since the order in which Unity calls LateUpdate for different objects is undefined: it might work sometimes, might not work other times.

Best solution is probably to manually update FinalIK in one of Obi's solver callbacks, OnBeginStep should work:
http://obi.virtualmethodstudio.com/manual/6.3/scriptingsolver.html

That did it, thanks Sonrisa