A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [F8] Rotation and recalculation of x and y

  1. #1
    Angkor-What? Gekke_Hollander's Avatar
    Join Date
    Jun 2000
    Location
    Netherlands
    Posts
    234

    [F8] Rotation and recalculation of x and y

    Hi,

    Well I finally figured out why I shouldn't have skipped certain classes in school...

    I have a circle with a point on it (marked with a red cross). The point is at x -60 and y 0 accodring to the circle's center. When I rotate the circle 90 degrees the x should be 0 and the y should be 90. But how can I calculate those values? I've been trying to work this out a bit but my math/algebra/triginomitry/whatever skills are non existend....

    Can anyone look at my fla please and help me out on this subject?

    Cheers
    Attached Files Attached Files

  2. #2
    Your code is correct, but you are using degrees instead of radians when you get the circle's rotation.

    Change this line
    PHP Code:
    rotat circ._rotation
    to this
    PHP Code:
    rotat circ._rotation Math.PI 180

  3. #3
    Angkor-What? Gekke_Hollander's Avatar
    Join Date
    Jun 2000
    Location
    Netherlands
    Posts
    234
    Thanx so much yasunobu!!! Thought I was close but far off at the same time

    Like BA Baracus said: don't be a fool, stay in school!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center