A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Please HELP (3d Rotation)

  1. #1
    Junior Member
    Join Date
    Nov 2003
    Posts
    18

    Please HELP (3d Rotation)

    Hey guys,

    I know there are a lot of brains out there. Please help me with this. I am trying to create a 3D - Navigation system using SIN and COS to create depth. I can get it to rotate about the Y axis just fine(left to right movements), but I am having trouble making it rotate around the X axis.

    Also, after I get that, I planned to put them together to make it rotate around both X and Y axis based on mouse position.

    .FLA is attached, feel free to use the code, thanks guys!

    -Jake
    Attached Files Attached Files

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Location
    Sydney, Australia
    Posts
    486
    i can't download your file and making a new one is bugging me because i can't get it to work. i have posted twice on different things that you will need so read them and see if they will help:

    depth of field:
    http://www.flashkit.com/board/showth...hreadid=590887

    rotation:
    http://www.flashkit.com/board/showth...hreadid=596218

    an important thing to remember is to first rotate about the one axis by using variables called newZ and newY (around x-axis) and then sub those values back into the variables for position and then repeat using newZ and newX (y-axis) before subbing in again. this is because the rotation equations rely on the original position in both dimensions so if you change one first it won't work

  3. #3
    Junior Member
    Join Date
    Nov 2003
    Posts
    18
    apparently when you download the file it removes the extension? Try to download it and rename it with a .fla extension

    Thanks for the links
    -Jake

  4. #4
    Senior Member jbum's Avatar
    Join Date
    Feb 2004
    Location
    Los Angeles
    Posts
    2,920
    It is the space in the filename that causes these problems on FlashKit.

    I would suggest getting in the habit of naming files without spaces when you upload them here.

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