So it is challenge time and what we're going to do is we are going to create a third person
camera and wherein you hold the right mouse button.
I want you to move to a third person orbital camera so you can view your surroundings and
when you let go of the mouse button, I want you to snap back to your third person camera.
This is a very practical gaming solution.
So to do this, there are a couple things you need to do.
One is you need to have a third person camera.
This is a script that was created real simple to do.
Basically we're creating the move speed, the rotation speed, the controller and the direction
and we are applying this.
You can just copy and paste this directly into a component or script.
If just press pause right now and copy it in and then apply it to your capsule.
I'm going to set my move speed to I believe five and my rotate speed to 30.
So if I press the play button, I should be able to have a capsule that moves in front,
back and when I turn right, the camera turns right and when I move left, the camera turns
left.
That's all it basically does.
We are not building a complex camera system or character system.
I'm looking more at how we're going to build multiple cameras for this character.
Now you need to kind of decide how do you want to swap between the cameras?
Well, a couple hints.
When it comes to virtual cameras, you could either enable and disable them.
If you enable and disable, it will go to the last remaining camera.
If you only have two, but if you have more than that, you may want to look at adjusting
the priorities or enabling and disabling all of them based on a for loop.
Just a suggestion to help you kind of go along.
But yes, let's go ahead and create this camera system as a challenge and I will see you in
the next video to review it.