Hi all, I am trying to rotate my instantiated object so it is facing away from my spawner as it is currently facing into the Z axis rather than the X. I have tried:
missile.transform.Rotate (0,rotation * Time.deltaTime,0);
but this doesnt seem to work.
I have also tried re-setting the missile prefab to its original coordinates of 0,0,0 and nothing happened.
Finally I tried setting the missiles rotation to as it should be in the preview window and creating a new prefab with it.
Can anyone tell me how to reference the instantiated object (as I think that i may be referencing the parent object by mistake.) Otherwise can someone please shed some light on this?
Thanks