Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

About this book

This book builds a simulator of the human arm from first principles, and explains every piece of mathematics it uses along the way.

The simulator is not an animation rig. Nothing in it is posed by hand. Muscles are switched on, they pull on tendons, the tendons pull on bones, the bones turn at joints held together by ligaments and cushioned by cartilage, and the arm moves as a result. If the arm lifts a weight, it is because the simulated muscles produced enough force to lift it.

Who it is for

You do not need any background in anatomy or mechanics. You need school algebra and the patience to work through examples. Everything else is taught when it is first needed, starting with what a vector is.

Programmers and technical artists should find enough detail here to build each model themselves. The simulator that runs the examples is open source, and each chapter names the code it describes.

How the book works

Each chapter asks one question, answers it in small steps, works an example with numbers, and then hands you a laboratory: a small live model you can change and run. The laboratories run the same code as the full simulator, compiled for your browser. Where published measurements exist, the laboratory plots them beside the model so you can see how close the model is.

Every number that comes from the research literature links to its source.

The path

The book adds detail in stages, and each stage is a working arm.

  1. Mathematics toolkit. Vectors, matrices, rates of change, and adding up small pieces.
  2. Rigid mechanics. Force, torque, energy, and how to step a model through time.
  3. Skeleton. Bones as rigid bodies, rotation in three dimensions, joints, and scaling a skeleton to a person’s size.
  4. Muscle, tendon and ligament in one dimension. How a muscle fibre makes force, how a tendon stretches, and how several muscles share one joint. By the end of this part an arm lifts a weight using muscles alone.
  5. Real joints. The ideal hinge is replaced by bone surfaces in contact, held by ligaments and separated by cartilage.
  6. Deformable tissue. Muscle as a solid that bulges and keeps its volume, and the properties of each kind of tissue.
  7. Solving. How a computer finds the shape of a deforming solid, keeps tissues from passing through each other, and couples them to the bones.
  8. The arm. The complete model holds a weight, curls it, turns the forearm, and moves at the shoulder, with every result compared against measurement.

The appendices hold the sources, the credits and acknowledgements, the data and their licences, the mathematical proofs, and instructions for building the book and the desktop application.