Professional Web Applications Themes

Help on Rotate in 3D - Macromedia Director 3D

I'm trying to get the camera to move and rotate to a set position over a number of keyframes. It does this when the mouse is run over another sprite. I'm calcuating the angle I want the camera to rotate though using the following line locang = (endang - member(1).camera("camera01").transform.rotation)/speed where endang is where I'm rotating to and locang and is the amount I want the camera to rotate in a single keyframe, speed is a determining factor in the time it takes to reach endAng. My problem is when dealing with angles over 90 degrees (i.e. vector(0,135,0)) the rotation ...

  1. #1

    Default Help on Rotate in 3D

    I'm trying to get the camera to move and rotate to a set position over a number of keyframes. It does this when the mouse is run over another sprite. I'm calcuating the angle I want the camera to rotate though using the following line

    locang = (endang - member(1).camera("camera01").transform.rotation)/speed

    where endang is where I'm rotating to and locang and is the amount I want the camera to rotate in a single keyframe, speed is a determining factor in the time it takes to reach endAng. My problem is when dealing with angles over 90 degrees (i.e. vector(0,135,0)) the rotation of the camera goes out of control and cannot home into position. Can someone tell me what I'm missing?
    (Works fine on any angles under 90)

    Thanks

    Mark


    Madgic webforumsuser@macromedia.com Guest

  2. #2

    Default Re: Help on Rotate in 3D

    a good helpful way of using the camera in director is the pointat command. this is useful to aim at an item.

    also try to use rotation rather than rotate. with rotate you can easily lose track of what your doing.

    HAIRYBOBBY - why didn't I choose a really cool name like the vulcanpimp

    [url]http://www.geocities.com/hairybobby2000[/url]

    Photograpghy section

    [url]http://www.geocities.com/hairybobby2000/px1.html[/url]

    Photoshop section

    [url]http://www.geocities.com/hairybobby2000/photo1.html[/url]
    hairybobby webforumsuser@macromedia.com Guest

Similar Threads

  1. RE-rotate
    By newmfa in forum Macromedia Director 3D
    Replies: 2
    Last Post: October 31st, 05:24 PM
  2. 3d rotate
    By Don Seckler in forum Macromedia Director 3D
    Replies: 7
    Last Post: November 4th, 02:40 AM
  3. rotate table?
    By Lasse Edsvik in forum ASP.NET Data Grid Control
    Replies: 0
    Last Post: September 22nd, 02:12 PM
  4. Rotate Tool Won't Rotate
    By ThomZ webforumsuser@macromedia.com in forum Macromedia Freehand
    Replies: 7
    Last Post: May 7th, 04:05 PM
  5. CCW Rotate and 180 rotate in PS CS are not working properly
    By Janet_Gerhardt@adobeforums.com in forum Adobe Photoshop Mac CS, CS2 & CS3
    Replies: 3
    Last Post: April 22nd, 03:24 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139