actionscript 3 - Mouse pointer angle with MovieClip in AS3 -
How do I calculate the Y-axis of a point with the mouse (say, Y position of the movie clip) Can the indicator location in the workspace 3?
Many thnx!
I think you mean the angle between point and mouse pointer if it is correct It probably will be something like this
var distanceX: number = mouseX - point.x; Var distance Y: number = mouse - point A.a; Var Angles in Aradian: number = mathematics.Tan 2 (distance, distance x); Var and LEDGrage: number = angle indria * (180 / Math.pi);
Comments
Post a Comment