flash on 2010-3-9 cac forked:1favorite:0lines:19license : MIT License modified : 2010-03-09 16:39:34 Embed Tweet package { import flash.events.Event; import org.papervision3d.materials.WireframeMaterial; import org.papervision3d.objects.primitives.*; import org.papervision3d.view.BasicView; public class Sample2 extends BasicView { private var sphere:Sphere // 球面のインスタンス public function Sample2():void { // マテリアルを作成 var material:WireframeMaterial = new WireframeMaterial(0xFF0000); // 3Dオブジェクトを作成 sphere = new Sphere(material, 300, 10, 10); // 3Dシーンに追加して、表示させる scene.addChild(sphere); // レンダリングを開始 startRendering(); // エンターフレームを設定 addEventListener(Event.ENTER_FRAME, loop); } private function loop(e:Event):void { // 球面をY軸方向に回転 sphere.rotationY += 1; } } } Code Fullscreen Preview Fullscreen material rotationY Event.ENTER_FRAME Event sort new page view favorite forked pv236 forked from: flash on 2010-3-9.. RobotCaleb forked:0 favorite:1lines:19 (diff:2)