All right.
Now that we have our code all hooked up let's go and get the better set up so we can move the rudder
around.
OK so let's get the rudder going.
So I'm going to select the rudder here and I need to provide the geometry so I'm going to select the
rudder game object and just put it into that control surface graphic and it's already set to Retter
So that's good.
And 30 is going to be fine for me.
Now I want this to rotate around the y axis so I'm just going to put a one in for the y axis and zero
in for the x axis and then I'm going to set my speed to four and that should be initialized for me so
I'm going to initialize it to something like 2.
So I just wanted to update that there.
All right.
And that should be everything we need to do.
Really really simple.
Now that we have the script working we can just assign it and work with any of our control surfaces
and just really determine which access we want it to rotate on and give it a max angle and we're good
to go.
All right so let's set up OK.
I'm going to move the rudder here and we are good to go but I do need to negate that one as well.
So we'll just do that in the script itself.
So we don't do any trickery in our code.
Really cool.
All right.
So let's go and let's do a flight I'm going to maximize this just to make a cool k might save you and
I'm going to go and take off.
Now you'll notice that while I'm testing out these control surfaces here on the ground it's actually
rotating our our airplane and we don't want that to happen because it's not going to provide a lot of
torque when we're just sitting on the ground.
Right we're only going to be providing a certain type of torque force when we're up in the air moving
at a particular speed.
So when we get more towards our Polish phase for this we're going to go and take care of that.
So when you know the airplane is just sitting pretty statically we're going to make it so that you know
it doesn't apply any torque forces to our plane was sitting on the ground.
All right.
So let's go and take off.
And I'm going to pitch down a little bit just to get the tail off the ground.
There we go.
And then I can take off beautiful and our rudder is now working perfectly.
We are flying.
We are totally fine.
It's pretty cool.
It's really fun so far to fly this plane.
At the current settings that I have it set at.
All right.
OK.
So let's go and get the ailerons hooked up and then call it good for this whole section.