If you don’t want to use animations…
You may want to look into inverse kinematics
Here are some resources:
Of course there are other community resources to actually learn the math behind it: