Rigid-body kinematics