For more experiments and code, check out my flash programming blog.
3D Spinning Cube in AS3By Forrest Briggs, March 23, 2008This is a basic 3D spinning cube written from scratch in ActionScript 3 (i.e. it does not use libraries such as PaperVision or Sandy). You can download the source. It contains two fairly useful 3d and 2d vector classes (with operations like rotation, etc), and the math for 3D to 2D perspective projection. |