Now let's do our airplane.
So we will open up our meshes directory and we'll pull in the airplane.
Into our scene.
So this will help us.
The reason we want to do this now is it will help us to have a scale reference for how far apart we
should place rocks and where this course should go.
So if we hit the F, he will be able to focus on this, this plane.
And this airplane is going to need the material.
So let's create a new material for it.
And we will create a material and we'll call this airplane.
Read.
And let's choose a red color for it.
I'm just going to do bright red.
Two fifty five zero zero.
And right now it's not completely smooth.
Let's apply this material to.
The airplane and see how it looks.
Don't apply it to the propeller, we'll need a separate material for that, which we'll get to momentarily.
And this smoothness, you can play with this until it looks like something you want.
I'm gonna go with more smooth and I'm gonna toy with the metallic a little bit, too.
So I kind of like this metallic, like not fully metallic.
That's a little bit too much, but kind of somewhere in between metallic and non metallic and then pretty
smooth.
And then we can kind of.
We can rotate around and see if we like the way that looks.
So I like the way that looks.
So that's what I'm gonna use.
And then we're gonna create a new material to use as the propeller.
And this one probably wanted to be mostly black.
I'm not going to go all the way, but pretty much black will apply here.
And for smoothen that, I mean, this is fine.
It doesn't doesn't really matter.
I'm just going to leave it as is.
That looks pretty good.
So here's our airplane and for good measure.
Why don't we create a few more colors now and then we'll be ready to use them as soon as we are ready.
So for some reason, unity doesn't let you right.
Click on this and duplicate a material, or at least not that I've seen.
But there's a shortcut key that does allow you to do that.
If you control D when you've selected a material, it will duplicate the material.
So hit control D duplicate the material.
We're going to rename this to Blu.
And then we can change this color.
Let's see if we change this to full on blue.
That looks pretty good.
I'm actually going to go a little bit somewhere in between blue and Cyan because I kind of just like
that color a little better.
And just for just a test, I want to just see how that looks.
Looks pretty good.
Now, I'm going to now I will make these all solid colors, but I'm going to make a couple more colors
here.
So I'm going to make another material with Control D.
This one's gonna be white.
And we will change color up into this corner.
Maybe a little bit off-White, not pure white.
And then we can see what this looks like.
Looks pretty good.
It's almost looks a little bit silver because it's kind of metallic.
And then we'll do one more.
And of course, you're welcome to make whatever color you want.
I'm going to do a yellow.
And then I will set this color to sort of a yellow more toward orange than toward green.
And we'll see how this looks.
OK, so that looks pretty good.
You're welcome to tweak the colors, you know, go more orange or, you know, if you want a purple
plane, whatever you want to do.
Going to keep it right there.
OK.
And I don't know, actually, if generating lighting for this does anything to change the appearance,
I'm just curious.
No, it doesn't.
Okay, I just wanted to double check.
I think once you generate lighting for your level, it kind of doesn't need to be done again.
But I'm not an expert on this.
So refer to documentation if you're interested.
So now we've got this airplane and several colors to work with.
I'm going to create a prefab out of this, but I guess probably a good idea to do our collider on this
first.
So we will just like we did for the rock.
We're gonna add colliders, but we don't have a mesh collider for this.
And in fact, this meshes just a little bit too complicated.
So we don't really want to use a mesh collider.
We would rather use a capsule collider and don't choose the tutee.
One, make sure you choose the the regular 3D one.
So you can see that this little ball showed up inside of this airplane.
That's our collider currently.
And it's obviously not big enough.
So we can try playing with the height.
But you'll notice it's kind of hard to see, but you'll notice that it's going in the wrong direction.
We can choose the direction of this to be the Z axis, which is this blue axis.
And then we can make the height be more correct.
So.
Looks like that's about right.
Maybe a little bit less, and then we can also change the radius of this to make it a little bit bigger.
Something like that.
So that looks pretty good.
It does not need to be perfect if an airplane clips through this.
I don't care.
It won't matter.
We just want to make it so that if we collide with something, then it actually has something to hit.
And then these wings, too.
We don't want to be able to fly through stuff with the and not have some sort of collision happen.
If we if we don't hit these.
So we're going to create another capsule collider.
And this one, we're going to have the direction B along the x axis, so that red axis and then we're
going to make the height.
B, something.
So we need to be able to see it kind of from the top.
In fact, let me try and hit this wall.
Why?
To see it from the top.
It's kind of hard to see because the lighting is too bright here.
We can toggle this off, this lighting off, and then you can see a little bit better.
And then if you click this, it's really hard to see.
But this will switch between isometric view and perspective view.
Isometric just means you see it more like a 2D flat view.
So we can make sure that this height is right.
So some are around there.
And then we can push this forward by modifying the Z axis and then having something like that.
And then let's view it from the side and make sure that these are correct.
Let's move this capsule up a little bit.
OK, so this is not, like, perfect by any means, but it will at least be kind of similar to the way
that this would behave in the real world.
And then we can take this airplane.
Let's.
Let's create a prefab out of it.
And we'll go down into our prefabs directory and we will just drag this down.
We probably won't use this actual prefab we'll use.
We'll create another version of it for our airplanes, for the learning, and then for the one that
the player is going to control.
But we'll use this now for reference in our CNN.
Hey, just wanted to add something in here at the end of this video, since I'm mostly keeping this
video the same from the original recording, but now we have to change something slightly for the version
1.0 update.
So we're going to change the name of airplane to airplane learning and then go ahead and open up that
prefab.
And we're going to take all of these objects and put them under a separate parent object.
So.
Right, click on this to create empty.
We're going to call this airplane object.
Make sure it's at zero zero zero and all these match, and then we're going to shift select all of these
and drag them underneath airplane object.
So what this will allow us to do is take this airplane object and hide it efficiently.
So we'll want to hide it when the airplane crashes, we're gonna hide it and replace it with an explosion.
So that's why we're doing this now.
This will just make it a little bit easier later in the course when we're implementing that.
There's another thing I want you to set up right now, and that is to create a couple more of these
airplanes of different colors.
So go ahead and duplicate the airplane learning three times so that there are four airplanes and we're
going to move them.
Let's move this first one here.
And then this second one here and this third one.
Right here.
So now we've got a bunch in a row and we want to rename these.
So we're gonna call this airplane learning.
It's called this one red.
Make this little bigger, call this one blue.
And this one white.
And we're going to apply our materials so that the first one was read.
So this one right here.
And just apply it to all the different pieces of it.
And then blue.
And white.
And once you've got that on all of them, go ahead and switch back into the prefabs folder and you can
drag this down in here and you want to create a prefab variant.
So click on that.
And now you're going to have this red version of the airplane.
And the only thing that's different about it is the color.
So anything else you change on this?
Prefab here will be applied to this as long as it's not the color.
So you can go ahead and drag down in blue, prefab variant, white prefab variant, and then you'll
have four different colors and four different airplanes that will all behave the same.
And that we can use later on when we start racing these planes and training them.
Now, you won't need any of these at this moment.
So go ahead and select these from the scene and delete them.
The prefabs will still exist, of course, but we won't be using them quite yet.
We'll add them back later.