I’m trying to rig a mechanical leg where one of the links in the IK chain is of a piston type. Ideally I would like to have a limit on how long the piston can be since it’s physically impossible for it to stretch more than a certain amount. Like the IK angle limits but for stretch. Is there any known good workaround?
I have found the following resource that touch on the subject:
Problem: The location limit on the IK target dosen’t work when it’s dragged in any other direction than only Y as far as understand the rig.
Problem: The piston part is actually not part of the IK chain so animating with this would be more hassle than if the piston is part of the IK chain.
My only idea right now is to create some kind of rig where the actual mechanics of the rig is taken care of with bones that are connected as a scissors lift (so I can use angle constraints) and then just add on the piston somehow. Is this a reasonable workaround or is there any other way with scripting/drivers or similar?
Thanks in advance for any advice!