Press space, and slide the variables to see what happens. Press the y0p0r0 button to reset the yaw, pitch, and roll of the cube to all become 0. Press key s to show fading or not. Finally, pres on the rectangles to adjust how the cube moves.
To raucket for the cube coding, and to @leszpio for the stage stamping. There is another kind of 3D simulation in my original account, @_youtubeN1. 10/17/14: 1 love 1 fave from @NobleReign!