Rotation between two transform.rotation vectors.

Ask a Question related to Macromedia Director 3D, Design and Development.

  1. #1

    Default Rotation between two transform.rotation vectors.

    Hello,
    I think my subject is pretty straight forward. :)
    I am looking for a way for my 3D character to slowly rotate between two
    vectors. The rotation vectors is results from the rotation property of
    GetWorldTransform().

    My first idea was to somehow convert the two vectors into degrees and with the
    help with that information then simple use the rotation()-function.

    All help would be highly appreciated, thanks. :)

    Thanks!

    SuperTank Guest

  2. Similar Questions and Discussions

    1. transform.rotation.y in javascript
      Hi, How do you write: member("theModel").model("furniture_group").transform.rotation.y = 200 ... in javascrippt? I've tried: var myModel =...
    2. transform.rotation gives me headache
      Hello Im working with an Adventure game like Grim fandango. Currently im working on this script; when you get close to an interactive obejct,...
    3. rotation
      > I'm trying to create a animation (flash 5) with an object rotation. http://www.macromedia.com/support/flash/ts/documents/center_point.htm ...
    4. rotating about parent and "self" with transform.rotation?
      Hi is it possible to first rotate a model about its parent node and then rotate it about its own axis (or vice versa - that doesn't matter. The...
    5. rotation error when using transform
      hi all, when i use the transform.rotation to adjust the x and z axis data to 0, the y axiz data will get error(e,g, 76 degree) ..... because the...
  3. #2

    Default Re: Rotation between two vectors

    Check out the "interpolateTo()" command in the help. Should do what you want!

    hope this helps,

    - Ben
    duckets Guest

  4. #3

    Default Re: Rotation between two vectors

    Thank you duckets. :)

    However, interpolateTo( ) seems to depend on the game's FPS-rate, which I
    rather want to skip. I am currently working on a network game and therefore,
    timebased movement is required.

    SuperTank Guest

  5. #4

    Default Re: Rotation between two vectors

    The interpolate() and interpolateTo() commands accept a percentage value as the
    second parameter, so you should be able to specify what percentage of the
    interpolation you want, at the current point in time, as a factor of your time
    delta.

    - Ben





    duckets Guest

Posting Permissions

  • You may not post new threads
  • You may 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