This repo is originated from Udacity's Self-Driving Car Simulator (https://github.com/udacity/self-driving-car-sim).
Install Git LFS to properly pull over large texture and model assets.
Run the following command once per your git account to enable it.
git lfs install
git clone git@github.com:naokishibuya/car-driving-simulator.git
https://unity3d.com/get-unity/download
Note: all the assets in this repository require Unity.
Start Unity and open the exiting project from the car-driving-simulator
folder.
Go to File -> Build Settings...
- Go to the project tab in the bottom left, and navigating to the folder Assets/1_SelfDrivingCar/Scenes.
- To load up one of the scenes, for example the Lake Track, double click the file LakeTrackTraining.unity.
- Once the scene is loaded up, you can fly around it in the scene viewing window by holding mouse right click to turn, and mouse scroll to zoom.
- Jump into game mode anytime by simply clicking the top play button arrow right above the viewing window.
- Scripts are what make all the different mechanics of the simulator work and they are located in two different directories:
- the first is Assets/1_SelfDrivingCar/Scripts which mostly relate to the UI and socket connections.
- the second directory for scripts is Assets/Standard Assets/Vehicle/Car/Scripts and they control all the different interactions with the car.
- You can easily build a new track by using the prebuilt road prefabs located in Assets/RoadKit/Prefabs click and drag the road prefab pieces onto the editor.
- You can snap road pieces together easily by using vertex snapping by holding down "v" and dragging a road piece close to another piece.