A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: get coordinates of 3d rotated MovieClip

  1. #1

    get coordinates of 3d rotated MovieClip

    Hi, I have animated a MovieClip using z depth and rotationY. I what to get the x and y coordinated of the top left corner in 2d space.

    If i
    Code:
    trace(getBounds(mc.topLeft));
    mc.rotationY = 10;
    trace(getBounds(mc.topLeft));
    outputs:
    (x=0, y=0, w=299.5, h=299.5)
    (x=0, y=0, w=299, h=303)
    Any help appreciated

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    I don't know you have solved this, but the way you are doing it is correct. I don't understand why the x and y does not change after the rotation. I tested this once with a rectangle and x or y always changes.
    - The right of the People to create Flash movies shall not be infringed. -

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