pub fn add_turning(
f: &mut FrameMomentum,
joint: [f64; 3],
dir: [f64; 3],
ddir: [f64; 3],
speed: f64,
inertia: f64,
moment: f64,
)Expand description
Adds a body that turns about a fixed joint at joint, at speed: its centre of mass lies along dir (a unit
vector turning with it, ddir its derivative by the angle, so that the axis is dir x ddir), moment (kg m) its
mass times that distance and inertia its inertia about the axis through the joint. Its mass at the joint does not
change the load and is left out. Linear momentum moment speed ddir; angular inertia speed axis plus joint x that.