Fix the bugs (whoops, didn't read the error messages), use the physics 'motion' properties to do the demo rotation.