And now when I press play we can see the sun and
we can see the Earth rotating.
It is a little bit hard to see the Earth,
part of that is the size of my projection maybe is a little bit high.
In essence it's kind of like being zoomed out, so let me change the size and
make it little bit smaller.
Maybe make it 3, and hit play again.
And now it's a little bit easier to see the Sun and the Moon and the Earth.
The last thing that I wanna do is I wanna make my camera controllable.
Not the minimap camera but actually the main camera.
In essence, what I wanna be able to do is I wanna be able to click on the various
planetary bodies, the game objects, and have the camera look at them.
So first, we could do this with scripting.
Anything that's interactive, we often do with scripting.
And we've got two scripts to do this.
We've got a ChangeLookAt and a LookAtTarget.
So, the LookAtTarget is a script that's meant to be placed on the main camera.
So let me go ahead and drag and drop that onto the main camera.
So now it has the LookAtTarget script or component attached to the main camera.
And the ChangeLookAtTarget is
the script that we place on all the game objects that we wanna be able to click on.
So, what this does is it essentially responds to a mouse event,
a mouse down event, on the game object and resets the target of that other script.
So, let's go ahead and put the ChangeLookAt script on the Sun.
Put it on the Earth and even put it on the Moon.