In a 3D Program such as Lightwave, or Modo, you can do The Inverse Kinematric.
Can you do that In After Effects CC ?
IK is not available as a built in but there are several solutions involving expressions. The first, and the one that I still use most of the time is from Dan Ebberts:
The DuDuf IK tools are also very good. A donation is appreciated for this well designed set of IK tools.
Mr. Rick Gerard.
Retrieving data ...