i know this is simple but i just need the simplest code to find the angle between 2 points in flash 8.
thankyou all.
Printable View
i know this is simple but i just need the simplest code to find the angle between 2 points in flash 8.
thankyou all.
Hi hmvince,
I've found a tutorial from Jim Bumgardner:
thankyou WPRS
i was also wondering in what direction is 0, 90, 180, and 270 in flash because i know that it is different to other programs but still unsure.
thanks again
You are welcome :)
did you know about the angles?
PHP Code:function GetAngles (Direction1)
{
var Direction2:Number = Direction1 % 360;
if ( Direction2 <= 180 )
{
return ( Direction2 );
}
else
{
return ( -( Direction2 - 180 ) );
}
}
trace (GetAngles (0));
trace (GetAngles (90));
trace (GetAngles (180));
trace (GetAngles (270));
this is not really what i meant.
is 270 degrees to the right?
is 90 degrees to the left?
is 0 degrees to the up?
is 180 degrees to the down?
excuse my english
http://geniusduck.tistory.com/tag/angle
http://cfs8.tistory.com/image/4/tist.../48770bee5a069
Code:var radians = degrees * Math.PI / 180
var degrees = radians * 180 / Math.PI
this isnt in flash though is it. because i heard once that the angles in flash are different, like rotated clockwise or something?