flash on 2013-2-20
import org.papervision3d.core.animation.clip.AnimationClip3D;
/**
* Copyright ohisama ( http://wonderfl.net/user/ohisama )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/gLkw
*/
package
{
import flash.events.Event;
import org.papervision3d.objects.parsers.DAE;
import org.papervision3d.view.BasicView;
public class Main extends BasicView
{
private var i : Number;
public function Main()
{
var dae : DAE = new DAE(true, null, true);
dae.load("http://yumekikaku.dip.jp/obj/astroBoy_walk_Maya.dae");
scene.addChild(dae);
dae.scale = 5;
dae.y = -30;
i = 0;
startRendering();
}
override protected function onRenderTick(event : Event = null) : void
{
i += 0.02;
camera.x = Math.sin(i) * 100;
camera.z = Math.cos(i) * 100;
super.onRenderTick(event);
}
}
}