- Home /
Odd collider rotation
I have a bit of a conundrum. I have a certain object, that behaves normal when added to the scene in editor mode, but as soon as I start the game and instantiate that object, the collider rotates in the opposite direction of the object. I have never seen this sort of thing.
This is how I instantiate the object:
GameObject tempObj = (GameObject)Instantiate(FireObject,FirePoint.transform.position,Quaternion.identity);
tempObj.transform.eulerAngles = new Vector3(0,-180,-180);
tempObj.rigidbody2D.AddForce(Common.ApplyForceMode(FirePoint.transform.forward * (force*MaxPower),ForceMode.Impulse,rigidbody2D));
Comment
Best Answer
Answer by Nexum1 · Jan 25, 2014 at 11:47 AM
The problem occurred because I was setting the euler angles! Strange...