円運動

6月 17, 2007 · Posted in Flash 

概要

円運動(この名称間違ってる?)の数式。
最近、頭のハードディスクがいっぱいですわ。
バックアップ!!

Action Script 2

Action Script
i=0;//角度
midx = 320;//中心点x
midy = 240;//中心点y
r =100;//半径
this.onEnterFrame = function(){
 _x = Math.cos( i * Math.PI/180) * r + midx;
 _y = Math.sin( i * Math.PI/180) * r + midy;
 i +=3;
}

円運動のソースダウンロード

Comments

Comments are closed.