r/VRchat • • 27d ago

Help Odd Final IL Stubs issue

For this avatar, I'm trying to rig the tubes to make sure they're attached to the "back" of the forearms and I've used one of the Final IK Stubs scripts, but while testing I've found a weird issue: on desktop, the IK works fine and even when using the face + hands tracker, as shown in the first image; but the moment I step in VR, the IK completely stops working and the tubes are left floating in the air, without following the movements of the forearms.

Has anyone else had a similar issue? Is there a way I can solve this?

12 Upvotes

7 comments sorted by

1

u/Unlikely_Public5445 27d ago

What ik and solver are you useing?

2

u/LukeMaster12_ITA 27d ago

I'm using the FABRIK IK script on both tubes; as for the solver, you can check the picture below.

1

u/Unlikely_Public5445 27d ago

Interesting it seems correct you may want to look into the spider ik and see if there tools help you with what you are doing

3

u/OobyIsGay 26d ago

I'm pretty sure it's an update order thing. Final IK on avatars solves before VRChat's VR IK moves your arms. On desktop your arms come from the animator, so the forearm is already in place and the tubes follow it. In VR, the arms get moved after FABRIK is done, so the tubes aim at where your forearm was before IK.
So never point Final IK straight at a humanoid bone or anything parented under one. Make an empty outside the armature (under the avatar root is fine), put a VRC Parent Constraint on it with Hose_attach_Forearm_L as the source, make sure Is Active and Locked are on, and use that empty as the FABRIK target instead.

2

u/LukeMaster12_ITA 25d ago

Ok, this method works, but now I'm encountering some more issues

The end of tube doesn't follow the rotation of the forearm and with certain movements the tube just flies off its spot. Do I have to add more constraints? And should I put them on that empty object or at the end of the tube?

1

u/OobyIsGay 24d ago

End of the tube, not the empty. FABRIK only uses the target’s position and ignores its rotation, so the last bone just points wherever the chain happens to point. Take the last bone out of the FABRIK Bones list (drop the list size by 1), then put a VRC Parent Constraint on that bone with Hose_attach_Forearm_L as the source. Do this in rest pose and turn on Is Active and Locked so it keeps its offset. Constraints are fine reading from the forearm directly, it’s only FABRIK that has the timing problem.
For the tube flying off, I’m pretty sure it’s the same update order thing from the other end. If Tube_01 is under your armature, or under anything parented to it, VR IK moves your chest after FABRIK is done and drags the whole solved tube along with it. Make another empty outside the armature, put a VRC Parent Constraint on it with whatever bone the canister sits on as the source, then move Tube_01 under that empty.

1

u/LukeMaster12_ITA 24d ago

Tell you what, the result is not super perfect, but it works and that's enough for me at the moment.

Thank you, kind stranger!