Professional Web Applications Themes

Rotation between two transform.rotation vectors. - Macromedia Director 3D

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!...

  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. #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

  3. #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

  4. #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

Similar Threads

  1. transform.rotation.y in javascript
    By Jakob Wagner in forum Macromedia Director 3D
    Replies: 1
    Last Post: July 21st, 11:46 AM
  2. transform.rotation gives me headache
    By Pelleyoo in forum Macromedia Director 3D
    Replies: 1
    Last Post: May 1st, 10:49 AM
  3. No rotation?
    By darrinps in forum Macromedia Director 3D
    Replies: 3
    Last Post: May 9th, 01:46 AM
  4. rotating about parent and "self" with transform.rotation?
    By Vane Telster in forum Macromedia Director 3D
    Replies: 3
    Last Post: June 12th, 11:26 PM
  5. rotation error when using transform
    By loway in forum Macromedia Director 3D
    Replies: 0
    Last Post: April 26th, 06: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