So I'm trying to code a landing leg animation so that the 2 "front legs" and the third "back leg" rotate at the same time. To be more specific, I want the end of the third leg to be at the base of the "foot" during the whole animation. So I coded a child translation animation so that the "back leg" jack extends as the leg rotates around "pivot 2", it works. The problem is the rotation rate of that back leg. It can't be linear, else the jack won't stay at the base of the foot and it looks weird. Instead, the rotation speed of the "back leg" anim should follow a curve that matches the arc described by the "front legs" rotation (centered around "pivot 1" and of radius r).
I lack the mathematical tool to do this, so anyone has an idea ? I'm sure it can be done, all I need is a mathematical function that controls the speed of the "back leg" rotation.
Here's a small drawing, I hope it helps understanding my problem :
Many thanks for helping !
I lack the mathematical tool to do this, so anyone has an idea ? I'm sure it can be done, all I need is a mathematical function that controls the speed of the "back leg" rotation.
Here's a small drawing, I hope it helps understanding my problem :
Many thanks for helping !