"How to make a new tank" (Ver.1.1)

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


This tutorial shows how to make a new tank using the meshes of Firefly in this package.
When you want to use your model, please read also "Modeling Manual".

(1) Prepare the scene for making the working space.
    Open the demo scene "Test_Field", and remove all the tank in the scene. 


(2) Set the prefab tank "Template_Tank_1.1".
    You can find the prefab "Template_Tank_1.1" in the "Prefabs" folder.
    Drag and drop it into the Hierarchy window.


(3) Break the prefab connection.
    Select the tank and break the prefab connection.
        "Game Object" >> "Break Prefab Instance"


(4) Set up the "MainBody".
    Select the "MainBody", and set the "Mesh", "Material" and "Mesh Collider".
        Set the mesh of the body into the "Mesh Filter".
        Set the material for the body into the "Mesh Renderer".
        Set the mesh for the body's collider into the "Mesh Collider".
    In this tutorial, set them as follows.
   


(5) Set up the "Turret", "Cannon" and "Barrel".
    Similarly, set the "Mesh", "Mesh Collider" and "Material" in them.
    In this tutorial, set them as follows.
    (Turret)
   
   
    (Cannon)
   

    (Barrel)
   
    (Note.) The collider of the Barrel is omitted in this project.


(6) Adjust the position of  the "Turret", "Cannon" and "Barrel".
    Adjust their positions if you need.
    In this tutorial, you need not to move them because their pivots are set at the same position as the MainBody's pivot.
   

(7) Adjust the position of  the "Turret_Base", "Cannon_Base" and "Barrel_Base".
    At first, move the "Turret_Base" to the rotation-axis of the turret.
   

    Next, move the "Cannon_Base" to the rotation-axis of the cannon.
   

    At last, move the "Barrel_Base" to the center of the barrel.
   


(8) Adjust the position of the "Fire_Point" and "Gun_Camera".
    Move the "Fire_Point" to the front of the muzzle. The bullet is spawned and shot from this object.
    And move the "Gun_Camera" to the front of the "Fire_Point". The camera is used for aiming the target.
   


(9) Set up the hierarchy of the turret, cannon and barrel.
    The turret must be placed under the "Turret_Base" as the child.
    Drag and drop the "Turret" into the "Turret_Base" in the Hierarchy window, and make sure that the "Turret" is placed under the "Turret_Base" as the child.
   

    The cannon must be placed under the "Cannon_Base" as the child.
    Drag and drop the "Cannon" into the "Cannon_Base" in the Hierarchy window, and make sure that the "Cannon" is placed under the "Cannon_Base" as the child.
   

    The barrel must be placed under the "Barrel_Base" as the child.
    Drag and drop the "Barrel" into the "Barrel_Base" in the Hierarchy window, and make sure that the "Barrel" is placed under the "Barrel_Base" as the child.
   


(10) Test the behavior of the turret.
    Test the new turret in the runtime.
    (Tips.) You can switch the aiming mode to free-aiming by pressing "R" key.
    The rotation speed and more settings can be adjusted as you will. Please read the reference manual "Turret_Base", "Cannon_Base" and "Barrel_Base"..


(11) Set up the "RoadWheels".
    Firefly has unique suspension system that the arms are attached forward and backward. So, we need to create two types of "RoadWheels".
    At first, let's finish the front one.
    Select the "RoadWheels" in the Hierarchy window, and rename it to "RoadWheels_Front".
   
    Next, adjust the position of the "RoadWheels_Front".
    Move it to where the first suspension arm should be attached.
    In this tutorial, set the position as follows.
   

    The road-wheels and the suspension arms are created by "Create_RoadWheels_CS" script.
    Please set up the options referring to the manual "RoadWheels".
    In this tutorial, set the values as follows.
   
   

    Now, the front road-wheels have been created. Next, let's create the rear road-wheels.
    Duplicate the "RoadWheels_Front", and rename it to "RoadWheels_Rear".
   
    And move it to where the first rear arm should be attached.
    In this tutorial, set the position as follows.
   
   
    Some values in the "Create_RoadWheels_CS" script must be changed for remaking the front wheels into the rear wheels.
    In this tutorial, change the values as follows.
   
   
    
    Now, the front and rear road-wheels have been finished.
    Please test the wheels and suspensions in the runtime.
   


(12) Set up the "SprocketWheels" and "IdlerWheels".
    Move the "SprocketWheels" or "IdlerWheels" to where the wheels should be attached.
    And set up the options referring to the manual "IdlerWheels" / "SprocketWheels".
    In this tutorial, set the values as follows.

    (SprocketWheels)
   

    (IdlerWheels)
   


(13) Set up the "SupportWheels".
    Move the "SupportWheels" to where the first support-wheel (return-roller) should be attached.
    And set up the options referring to the manual "SupportWheels".
    In this tutorial, set the values as follows.
   

    Now, all the wheels in the tank have been finished.
    Next, let's set up the track belt in the tank.
    Please progress to the next tutorial "How to make a Track Belt".
   


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