In our process of building a scene through unity, we often find that the object is dragged into the scene, we will find that the object is reversed, by changing the rotation property of the object to get the correct direction, the object's coordinate system becomes and the default coordinate system (the frame of the upper right) Not the same, so that the subsequent scripting work (usually the control (Transform) script and build (intantiate) script) brings trouble, because the script writing process is in accordance with the normal coordinate system, the object's script and the default is different, such as the press key object upward phenomenon .
In fact, in the creation of the game scene, not only the direction of the object, a game object of the coordinate direction of the size, it is possible and my expectations, or we want to look like there is a big difference, in order to get what we want, is bound to change the object, then in order not to change the object's original coordinate system and other information We need the most commonly used objects in unity---empty objects, and we use an example experiment to draw a conclusion (many times, it's a great way to experiment with unity in order to remember deeply).
, we've created a new two-object blue cylinder. We call it the cannon-red ball. Our goal is to achieve a simple launch of the Shell's demo request is that the shells appear at the top of the cylinder and are automatically generated and emitted
In the face of such a request, the first thought is to use instantiate
The relationship between Intantiate Transform empty objects and ontologies in the process of creating new game objects in Unity 3D