原点0,0から角度Nにある座標の数値は
(cosN, sinN)
https://helpx.adobe.com/jp/flash/kb/228615.html
(これのページは、cosとsinが逆になってしまっている)
function test()
posx = math.cos(radianValue)
posy = math.sin(radianValue)
end
主に、シューティングの弾で向いている角度に向かって飛ばす移動量のベース値などに使う。
原点0,0から角度Nにある座標の数値は
(cosN, sinN)
https://helpx.adobe.com/jp/flash/kb/228615.html
(これのページは、cosとsinが逆になってしまっている)
function test()
posx = math.cos(radianValue)
posy = math.sin(radianValue)
end
主に、シューティングの弾で向いている角度に向かって飛ばす移動量のベース値などに使う。