pub fn drive_unit(
out: &mut Vec<Part>,
centre: [f64; 2],
y: f64,
radius: f64,
pulley_angle: f64,
rotor_angle: f64,
color: [f32; 3],
)Expand description
Draws a motor with gearbox and belt pulley at centre (x, z), the pulley in the belt plane
at depth y and the motor behind it. A cross on the pulley turns with the pulley, a bar on
the hub turns with the motor shaft, so both speeds can be seen.