2 Replies Latest reply on Mar 20, 2011 11:59 PM by martingr

    need help with translate method

    martingr

      What we want to do is have a model rotate as it moves within it's 3d world.

       

      I can rotate the model (in this case a simple cube) using the rotate method

      (eg; theModel.rotate(0,1,0) - this works fine within an exitframe handler, however

      if I add the translate method (eg; theModel.translate(0,0,1)) then the model moves

      on the y axis as well and doesn't 'move' as one would expect from the script

      (it actually jumps all over the place).

       

      If I run the translate method alone (without the rotate method) it's Ok - each

      method works fine in isolation but trying to run them together is trouble...

      Is there a better way to do this?