Motion 2, 円の動き

Nov 16, 2010

さきほどの動きと同じなのですが、基本の円運動です。

クリックすると動きだします

θ = 0
x = 0
y = 0

var x, y, radian, radius; // 横座標, 縦座標, 弧度, 半径
x = Math.cos(radian) * radius;
y = Math.sin(radian) * radius;
radian++;

続く:Motion 3, 波の動き


Comments