flash on 2013-2-20
http://www.geocities.co.jp/Playtown-Spade/7188/
/**
* Copyright ohisama ( http://wonderfl.net/user/ohisama )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/kEhp
*/
//http://www.geocities.co.jp/Playtown-Spade/7188/
package
{
import flash.events.Event;
import org.papervision3d.objects.parsers.DAE;
import org.papervision3d.view.BasicView;
import org.papervision3d.objects.parsers.Collada;
public class Main extends BasicView
{
private var i : Number;
public function Main()
{
var c : Collada;
c = new Collada("http://yumekikaku.dip.jp/obj/bottoms.dae", null, 0.02);
c.y = -650;
scene.addChild(c);
i = 0;
startRendering();
}
override protected function onRenderTick(event : Event = null) : void
{
i += 0.02;
camera.x = Math.sin(i) * 1000;
camera.z = Math.cos(i) * 1000;
super.onRenderTick(event);
}
}
}