"How to attach 'Track LOD system'" (Ver.2.5)

Please feel free to contact me if you have any questions.
shopmaster@chobi-glass.com
http://chobi-glass.com/Unity/index.html


(Outline)
This tutorial shows how to attach "Track LOD system" into the tank.
This tutorial uses the new Firefly made in the previous steps.


(Preparation)
(0-0) About "Track LOD system".
    "Track LOD system" is a simple solution to improve the performance using both "Static Track" and "Scroll Track" properly.
    The system switches the activation of both tracks according to the distance from the camera.
    "Static Track" is used as a high-detail track in the near view, and "Scroll Track" is used as a low-detail track in the distant view.
   
    So the tank must have two kinds of tracks "Static Track" and "Scroll Track" to use this system.

(0-1) Prepare a tank having "Static Track" and "Scroll Track".
    Prepare a complete tank that can run with "Static Track" and "Scroll Track".
    This tutorial uses the new Firefly made in the previous steps.


(1) Attach "Track_LOD_Control_CS" script.
    You can find the "Track_LOD_Control_CS" script in the 'C#_Script' folder.
    Drag and drop it into the "MainBody" in the Hierarchy window.
   

    Select the "MainBody", and make sure that the "Track_LOD_Control_CS" is attached in Inspector window.
   


(2) Assign the tracks.
    Drag and drop each track into the "Static_Track", "Scroll_Track (Left)" and "Scroll_Track (Right)".
   

    (Notice.)
    When your "Scroll Track" has "Track Collider", remove it from the tank.

    Please do not remove the "Track Collider" in the "Static Track". It is required for breaking the track.


(3) Test the behavior in PlayMode.
    Make sure that the tracks are switched according to the distance from the camera.
   

    (Tips.) The distance for switching the tracks can be changed by adjusting "Threshold" value.
   

   
  
(4) Create the prefab.
    Create the prefab of your new tank when you want to use it in other scenes.
    Please read "How to create a tank Prefab".

    You can also change this tank into AI tank.
    Please progress to the next section "How to set up AI tank.".