- Home /
New tracks for the Car Tutorial
Has anyone added new circuit tracks based on the Car Tutorial available here in Unity resources page?
http://unity3d.com/support/resources/tutorials/car-tutorial
What would be the process to add more tracks based on this Car Tutorial?
Would 3D models of tracks available on Asset Store work fine?
Thank you for your help in advance.
Refer to this car tutorial extension tutorial on youtube link text
Answer by fardinnn · Aug 11, 2012 at 08:09 AM
1_create a prefab in project(thats name must be "car") for your car and put car from hierarchy into you prefab.
2_create a prefab for your camera and put camera from hierarchy into camera's prefab .
3_create a new scene and save your scene(put "second level" for name).
4_create a terrain and import all your models and terrain heightmap (if you have) and put them into the scene.
5_put your car and camera's prefab into this scene and put "CenterOfMass"(children of car) into Target("Car Camera" script of the camera) .
6_go to the previous scene and create cube on the end of track ,chek "is trigger"from "Box Collider" and remove meshrenderer .
7_create a java script. drag script to cube. open script that and copy this :
var maxround : int =2 ; private var numerator :int =0 ;
function Update(){ if(numerator>=maxround) Application.LoadLevel("second level") ; }
function OnTriggerEnter(other : Collider){ if(other.gameObject.name=="car"){ numerator++; } }
Your answer
![](https://koobas.hobune.stream/wayback/20220613075456im_/https://answers.unity.com/themes/thub/images/avi.jpg)