Example
Example
Click on the example then use the arrow keys or WASD to move the car.
Fully understand the concept by watching the tutorial in full screen at high res.
Once you have watched the video, you can refer to the code below to help you make your own that fits your game. Make sure you type it yourself to help you learn.
I have created a separate file for the car object, with the code below. Don'f forget you will need to call these functions from your main file. The angleToVector() function is not built into microStudio, you will have to go here and click import source file .