Professional Web Applications Themes

store original worldtransform - Macromedia Director 3D

Hi there! Having problem with a reset world function. I would like to set the model to its orginal position, in tilt to. i figured thise out : member("world").model("3dobject").getWorldTransfor m() how should i store this in a variable so i can call it later on when i want to reset the world? Kind regards....

Sponsored Links
  1. #1

    Default store original worldtransform

    Hi there! Having problem with a reset world function. I would like to set the
    model to its orginal position, in tilt to. i figured thise out :
    member("world").model("3dobject").getWorldTransfor m() how should i store this
    in a variable so i can call it later on when i want to reset the world?

    Kind regards.

    Sponsored Links
    biiin Guest

  2. #2

    Default Re: store original worldtransform

    hi

    global object_WT

    on beginsprite --or something
    danieloizo Guest

  3. #3

    Default Re: store original worldtransform

    tryed the code, but i get :
    Variable used before assignd value : member("world").model("3dobject").transform = object_WT?

    any ideas?
    biiin Guest

  4. #4

    Default Re: store original worldtransform

    Is The variable("object_WT") global?
    have you used
    "object_WT = member("world").model("3dobject").getWorldTransfor m() " before
    "member("world").model("3dobject").transform = object_WT" ?

    Maybe you show us some of your code... would be easier to help you, or explain
    more detailed on how you want to use it. i gave you an example on how it should
    work, maybe in your case you have to implement it in an other way.

    danieloizo Guest

  5. #5

    Default Re: store original worldtransform

    (on the first frame)
    on exitFrame me
    object_WT = member("test").model("svart").getWorldTransform()
    end

    and then to reset :
    on mouseUp
    member("world").model("3dobject").transform = object_WT
    end

    Thank you for taking your time to teach me =)

    biiin Guest

  6. #6

    Default Re: store original worldtransform

    there should be :
    on mouseUp
    member("test").model("svart").transform = object_WT
    end

    and before the "on exitFrame" place "global object_WT"
    and before "on mouseUp" place "global object_WT"

    global object_WT
    on exitFrame me
    object_WT = member("test").model("svart").getWorldTransform()
    end

    global object_WT
    on mouseUp
    member("test").model("svart").transform = object_WT
    end

    I'm glad if I can help :)

    danieloizo Guest

  7. #7

    Default Re: store original worldtransform

    You realy did save my day...and a*.
    Thank you so very much!
    biiin Guest

Similar Threads

  1. Replies: 2
    Last Post: July 14th, 08:40 AM

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