There's a problem with how everything is rotating. See my big comment on line 374 (in motion) about this.