"MainBody" (Ver.1.1)

This object is hull of the tank.
You can modify the driving settings and the culling settings from this object.
Some of the options can be overwritten by "Spawner" in the scene.

(Note.)
This object requires any collider matching the body size, and a rigidbody having a weight matching the body size.
And this object must be placed in "User Layer 11" so that the collider does not collide with the wheels.

About the layer collision matrix, please read "Layer Settings".

This object must be placed under the "Top object of the tank" as the child.
(Note.) Please take care not to change their hierarchy.


You can modify the driving settings from "Wheel_Control_CS".

(Driving settings)
    [Wheel Torque]
    Torque force added to each driving wheel.

    [Max Speed]
    The maximum speed of this tank.
    (Tips.) This option can be overwritten by "Spawner".

    [Pivot Turn Clamp]
    You can adjust the ease of pivot-turn (turn while stopping) by changing this value.

    [Brake Turn Clamp]
    You can adjust the ease of brake-turn (turn while running) by changing this value.

    [Solver Iteration Count]
    This value affects the accuracy of the physics Joints in this tank.
    Usually, you need not change this value.


The culling settings of the tracks can be set from "Culling_Control_CS".
This script disable the scripts in the tracks according to the distance from the main camera, in order to improve the performance.

    [Left Deform Script]
    [Right Deform Script]

    Set the "Track_Deform_CS" script in the left or right track.

    [Left Scroll Script]
    [Right Scroll Script]

    Set the "Track_Scroll_CS" script in the left or right track.

    [Threshold]
    Threshold value to disable the scripts.