1 Reply Latest reply on Nov 27, 2009 3:51 PM by Dean Utian

    model rotation

    pm1329

      I have a 3d model which has been set up as rotating in enterframe:

      pSprite.member.model("mPumpkin").rotate(0,0,2)

       

      When the main model collides with it, I want it to rotate in the opposite direction.

      Collision detection is working fine and I've set up an if statement to check if the main model has collided with mPumpkin and put

      pSprite.member.model("mPumpkin").rotate(0,0,-2)

       

      but this doesn't seem to work.

       

      Does anyone have any tips on how to do this?