Glossary · Physics simulation
Torque
Also called moment, N·m, newton-metre
A twisting force: what makes something rotate. A motor turns a joint by applying torque, measured in newton-metres.
Force pushes in a straight line. Torque turns. A torque about a pivot comes from a force applied some distance from it:
where is the distance from the pivot, is the force and is the angle between them. A force pushing straight through the pivot () makes no torque at all. That’s why a long spanner turns a stiff bolt more easily: the same hand force, further from the bolt, gives more torque.
Torque is measured in newton-metres (N·m): one newton at a distance of one metre.
Torque and rotation
Torque is to rotation what force is to straight-line motion. Newton’s second law for rotation says
where is the angular acceleration and is the moment of inertia. A heavy, long limb has a large and needs more torque to swing at the same rate.
In a body
Every joint in a simulated body is turned by a motor applying torque (see actuator). Gravity also applies torque: a leaning trunk pulls itself further over, with torque times the horizontal distance of its centre of mass from the hip. The leg and hip motors must push back.
In this project
Each motor is a position servo whose torque is capped at a maximum chosen for that joint, so the simulated fighter can’t be stronger than a person.