The relationship between Intantiate Transform empty objects and ontologies in the process of creating new game objects in Unity 3D

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.