Based on the 3D renderer I made for my Little Ant video, this is an experiment with IK (Inverse Kinematics) programming.
IK is a technique of calculating the intermediate positions of joints in mechanical systems, from knowing the positions of the ends.
Kinematics means it solves the mechanics for positions only, paying no attention to factors like mass/acceleration/inertial movement.