title: Instantiate Spawns Object Away from Source?
body: <p>So what I'm trying to do is spawn a prefab of smaller cubes onto the exact same position and rotation of a big cube so it 'breaks apart'. When I hit space, the big cube disappears as intended, but the smaller cubes instantiate from a distance.</p>
  
  <p><a href="http://i.imgur.com/48towOW.gifv" rel="nofollow">Here's a .gif of what is happening.</a></p>
  
  <pre><code> void Update () {
           if (Input.GetKeyDown("space"))
           {
               Instantiate(explo, gameObject.transform.position, Quaternion.identity);
               Destroy(gameObject);
           }
           Debug.Log("The Rotation");
           Debug.Log(explo.transform.rotation);
           Debug.Log("The Position");
           Debug.Log(explo.transform.position);
       }
  </code></pre>
  
  <p>Debug Log:</p>
  
  <pre><code> The Rotation
   (0.0, 0.0, 0.0, 1.0)
   The Position
   (-5.5, -2.4, 3.5)
  </code></pre>
  
  <p>This is an extremely simple script and I've spent 2 days trying to find a similar problem to mine, but they all include Quaternion, which is not similar to my problem.</p>
  
  <p>EDIT: Changing gameObject.transform.rotation to Quaternion.identity seems to entirely reset the rotation of the object.</p>
  
  <p>EDIT2: 'explo' is defined before 'void start' as 'public GameObject explo', and is assigned via the Unity Editor.</p>