I know I am missing something elementary so maybe a fresh mind can point it out.
I have a gameobject that periodically rotates in a random direction. It is then supposed to move forward (local Z) for a period of time then repeat. All works well except that it always moves in the Z of the original transform (ie. the direction the gameobject was facing when game started). I have tried getting rotation and setting it prior to move and have stored object transform.. but unable to figure out how to set objects transform from variable..
any ideas on how I should best approach this?
UPDATE:
I am using itween rotate add to rotate the cube and I am playing an animation while it rotates. The itween exits using the Finished exit event and the animation is set to stop on exit. The animations are on an object parented to a control object which is being rotated. From watching it run using scene view the parent control object isn't even rotating, only the child object is... however, I am specifically using the control object inside the itween action (drag-drop). I tried disabling the animation.. still doesn't rotate specified GO...
Also.. my animations are on the child object so during the rotating state I play animations pointing at the child object, then itween rotate pointing at parent object.. (I have switched the order.. no different).. in prior states to this I play animations from child as well... do I need to tell playmaker that parent is back in focus somehow prior to using itween?