From the course: Unity 5: Network Gaming

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Instantiate projectiles

Instantiate projectiles - Unity Tutorial

From the course: Unity 5: Network Gaming

Start my 1-month free trial

Instantiate projectiles

- [Male Instructor] Now that we have highly identifiable tanks rolling around our scene it would be terrific if we could get down to the serious business of trying to destroy each other. For that we're going to need projectiles. So let's make a really simple projectile system, the kind you see pretty much everywhere. After we build a simple projectile system we can network enable it. I'll start with a projectile itself. For this I'm just going to start with a sphere. I'll right-click, select sphere and we're going to make sure that the position on it is dead-center, zero, zero, zero. I'll come over to the gear on the transform and select reset. One of the things I want to do when I'm building this is be careful that I setup the parent game object for this. I'll go ahead and create it. I'll create an empty one. Also make sure that it's transform is at zero, zero, zero. Now they're essentially on top of each other. I'm assuming that, if later you were to come back and make an actual…

Contents