"IdlerWheels" / "SprocketWheels" (Ver.1.1)

These objects contain the wheel objects used as idler-wheels or sprocket-wheels.
You can modify the idler-wheels and the sprocket-wheels from this object.

"Apparent_Wheel" is a dummy wheel without any collider and rigidbody, but can rotate synchronizing with the track belt while being controlled by "Wheel_Sync_CS" script in it.
"Invisible_Wheel" is a invisible but solid wheel having a collider and rigidbody. This object helps the tank to get over the obstacle as a driving wheel controlled by "Wheel_Rotate_CS" script in it.
"Arm" is a tensioner-arm, but does not have the function to adjust the tension of the track belt. Because the track belt is just a mesh without any collider in this project.

This object must be placed under the "MainBody" in the Hierarchy.
(Note.) Please take care not to change their hierarchy.

You can modify the idler-wheels or the sprocket-wheels from "Create_IdlerWheels_CS" or "Create_SprocketWheels_CS".
The wheels are remade whenever each value is changed.
(Note.) You need to remake the track belts when the wheel has been remade.
Please read also "Track_Belt" and "How to make a Track Belt".

(Arms settings)
    [Use Arm]
    You can attach tensioner-arms to the base of the wheels.
    The arm does not have the function to adjust the tension of the track belts, because the track belt is just a mesh without any collider in this project.

    [Distance]
    Set the distance between opposite arms.

    [Length]
    Set the length between the pivot of the arm and the pivot of the wheel.

    [Angle]
    Set the angle of the arm.

    [Mesh of Left]
    [Mesh of Right]
    [Material]
    Set the mesh and material for the arm.

(Wheels settings)
    [Distance]
    Set the distance between opposite wheels.

    [Mass]
    Set the mass (weight) of the rigidbody attached to each "Invisible_Wheel".

    [SphereCollider Radius]
    Set the radius of the SphereCollider attached to each "Invisible_Wheel".
    This project uses a SphereCollider as a wheel's collider in order to reduce the stress on the processor.

    [Radius Offset]
    When the effective size of the wheel is different from its apparent size (mesh size), adjust this value.
    You need not change this value in most cases.

    [Physic Material]
    Set the PhysicMaterial for the "Invisible_Wheel".

    [Mesh]
    [Material]
    Set the Mesh and Material for the "Apparent_Wheel".

    [Update Value]
    When this button is pressed, the wheels are remade.
    Usually this function is called whenever each value is changed.