I'm trying to make a bone rig for a piston which will be a part of active aerodynamics of a vehicle.
I did find a video but it was on older version of Blender and confused me halfway.
How to make an armature which does the following:
(a) has a sliding movement for piston
(b) has a angular movement on which causes the piston to operate, or vice versa.
Considering that, one part of piston is a fixed to a body and the other part is what does the sliding movement. This sliding movement is connected to an upright bone which rotates on the other free end's axis.
To put it simply the upright bone is being rotated to a certain angle by the piston. The upright bone is 90°, the default angle, pointing upwards."