transform.rotation.y in javascript

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

  1. #1

    Default transform.rotation.y in javascript

    Hi,

    How do you write:
    member("theModel").model("furniture_group").transf orm.rotation.y = 200

    ... in javascrippt?

    I've tried:
    var myModel = member("theModel").getPropRef("model", 8);
    myModel.transform.rotation.x=200;

    .. but that doesn't work.

    Does anybody know where to find a decent reference to 3d and javascript in
    director?

    : ) Jakob


    Jakob Wagner Guest

  2. Similar Questions and Discussions

    1. 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...
    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. 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...
    4. 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...
    5. transform ?
      Hi, I was hoping someone could tell me what exactly is displayed in the transform list I want to totally understand this as Ive been tweaking...
  3. #2

    Default Re: transform.rotation.y in javascript

    ahh.. just got it:

    myModel.transform.rotation=vector(0,50,0);

    .... but I'm still interested in a better reference than the one provided with Director, most 3D is only described in lingo.
    Jakob Wagner 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