- Home /
Which direction is the FORWARD DIRECTION of an Instantiated game object?
I ask this because I am having an incredibly annoying difficulty because the enemy game objects I have made when using the LookAt method is always facing the exact opposite of me. So my question is where in the process is the front direction changing (or even ever was).
Does the frontal direction change if the game object was instantiated by another script attached to an empty game object? Does the instantiated game object take the forward direction of the instantiator? I've tried rotating the model in the 3d modeling program I have been using and it doesn't seem to matter. I would really like some advise on this because it is getting a little silly how difficult this problem turned out to be.
Answer by tanoshimi · Jan 31, 2015 at 11:34 PM
You determine the orientation of an instantiated object by passing the third parameter to Instantiate() - http://docs.unity3d.com/ScriptReference/Object.Instantiate.html
Ok thanks at least I know that the orientation isn't just thrown out when its instantiated by another.
Your answer
![](https://koobas.hobune.stream/wayback/20220613182113im_/https://answers.unity.com/themes/thub/images/avi.jpg)