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

  1. #1

    Default rotate object

    Is there anyway to rotate an object around another object's pivot?
    sopphinken Guest

  2. Similar Questions and Discussions

    1. Record simple rotate of object on Z axis
      Hi, Using CS4. Is it possible to automatically record an object turning 360 on the Z axis? At the moment, I am turning the object a couple of...
    2. Make camera zoom and rotate around object
      This has been asked before - and not answered. So.. "Is there any easy way to duplicate the sort of camera rotation found in Director's 3D...
    3. rotate aw3d-object
      Hello I have managed to rotate a 3d-object with the left mousebutton with this script: on mousedown me...
    4. CCW Rotate and 180 rotate in PS CS are not working properly
      I have installed the singel version of Photoshop CS on a G4 under Panther and a newly purchased G5 using Panther. When a bitmap file is created (i.e....
    5. How do I rotate an object?
      I've cut out an object with the Lasso tool and want to paste it into another photo, but I would also like to rotate the object. Not sure how to do...
  3. #2

    Default Re: rotate object

    There are several ways. You can set the other object to be the parent of the
    object to rotate. You can use multiply() with the transforms of the pivot
    object and the object to rotate. Or you can simply use the following syntax
    with the rotate() method:

    v3DMember = member("3D Member Name")
    vObjectToRotate = v3DMember.model("Rotating Object Name")
    vPivotObject = v3DMember.model("Pivot Object Name")
    vPosition = vPivotObject.worldPosition
    vAxis = randomVector() -- replace with the (unit) vector that defines the
    axis of rotation
    vAngle = random(360) -- replace with the angle you want to turn

    vObjectToRotate.rotate(vPosition, vAxis, vAngle, #world)

    openspark Guest

  4. #3

    Default Re: rotate object

    sopphinken wrote:
    > Is there anyway to rotate an object around another object's pivot?
    Take a look at rotate in the dictionary and the optional parameter
    relativeTo.
    --
    Agustín María Rodríguez

    [url]www.onwine.com.ar[/url] > Macromedia Director demos & code
    Agustín María Rodríguez 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