Although most people animate a 3d model by “playing” an animation, we would like to manipulate each limb programmatically.
For example, if we wanted to rotate the knee joint, programmatically, we would like to be able to access the appropriate bone and set an angle to rotate it, and have all child bones (such as the foot and toes), also having their orientation changed programmatically.
Likewise, if we moved the upper leg, the lower leg should also move appropriately.
Every frame, we want to be able to set the orientation of several bones:
- Spine (3 bones)
- Upper Legs
- Lower Legs
- Upper Arms
- Lower Arms
Is there a way to do this programmatically rather than playing animations ? Can someone provide us with any example code ? We are looking to manipulate a 3d model of a skeleton, and basically move all bones in the skeleton programmatically.