First of all, create a new empty gameObject. Now, what if instead of the character, there was an invisible gameObject that shot the fireballs? After all, a user (game player) wouldn't really be able to see who exactly shot the fireball. ![]() If you pay close attention to the character we've created in the previous tutorial, you will notice that the fireballs just spawn out of the middle of our main game character, not from where you would expect (Like in this case, the outstretched hand). If you have directly arrived on this tutorial, we recommend you to check our last tutorial for understanding the ongoing example. Instead, we're gonna learn how to create child gameObjects of main gameObjects in the Hierarchy, a technique that proves to be quite useful when used with the Instantiate() method, that we have just learned about. Its time to put your baby toys and milk bottle down, we are not taking care of tiny little gameObject babies anymore. RigidBody Movement: velocity and AddForce(). ![]() ![]() Prefab Instantiation with preset Properties.
0 Comments
Leave a Reply. |