Posts

Showing posts with the label Week 03

Unity Tutorial 03

Image
In the first part of this week's Unity tutorial, we go more in depth with C# coding. And by that, I mean that we actually give the player control of the vehicle. To do that, we add some magical code that works, somehow. At first, we use a line of code that allows us to go forward and backward at will using the arrow keys. Next we add a line of code that lets the player turn, but to do that they have to manually change the speed in Unity's inspector. That's no good to us so we change it so that we can use left and right arrows. But what's this? The vehicle only slides left and right without actually rotating! We change it once more and lo and behold, the van now acts like a normal van would. The next part of this week's Unity tutorial is a Big Test ™. We take everything we have learned so far and put it to practice by ourselves, without a tutorial. We get a simple scene with a plane and some obstacles and we have to manipulate the code in such a way that...