Clip Flight Box Applet

``Oh, noe, he learned clipping!''

Alex S.

[PuppetApplet.java] [pMatrix.java] [BufferedApplet.java] [pMatrix.java.prev] (the pMatrix.java.prev is not used, but is 100% compatible---the code is also quite a bit cleaner and easier to look at)

You control pitch with W/S keys (Up Arrow/Down Arrow).
You control yaw with A/D keys (Left Arrow/Right Arrow).
You control roll with Q/E keys (Delete/Insert keys).
You control speed with Z/X (Z moves you forward, X moves you backwards). You can also use the '>' and '<' keys.

You can also use a mouse. A very convinient way to fly around is to control direction with the mouse, and keep holding down the 'Z' key.

Clipping (screen, and Z-near and Z-far) is done using the ``Sutherland Hodgman Polygon Clip Algorithm''.