paprervision3D sphere
♥0 |
Line 20 |
Modified 2010-01-10 15:20:07 |
MIT License
archived:2017-03-09 16:00:08
ActionScript3 source code
/**
* Copyright albatrus_jp ( http://wonderfl.net/user/albatrus_jp )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/ZpFi
*/
package {
import flash.display.*;
import flash.events.*;
import org.papervision3d.view.*;
import org.papervision3d.objects.primitives.*;
import org.papervision3d.materials.*;
public class FlashTest extends BasicView {
private var sphere:Sphere;
public function FlashTest() {
var material:WireframeMaterial = new WireframeMaterial(0x0000ff);
sphere = new Sphere(material,200);
scene.addChild(sphere);
startRendering();
addEventListener(Event.ENTER_FRAME,loop);
}
private function loop(e:Event):void{
sphere.rotationY += 3.5;
}
}
}