'How to adjust the tension of "Physics_Track"' (Ver.3.0)

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



*** Outline ***

This section shows several ways to adjust the tension of "Physics_Track".
(Note.)
This project has three track systems "Physics_Track", "Static_Track" and "Scroll_Track".

"Physics_Track" can be converted to "Static_Track" easily by using the editor scripts.
We will learn how to convert it in the following sections.



*** Adjust the number of the pieces ***

The number of the track pieces can be adjusted by changing the shape of the tracks.
The shape can be changed by adjusting the following values in the "Create_TrackBelt".
(In this tutorial, our new tracks seem to have no problem in the number and the shape.)




*** Adjust the angle of the tensioner arms ***

When the tank has tensioner arms in the "Create_IdelrWheel", we can adjust the tracks tension by changing their angle.
The angle can be set from the "Create_IdlerWheel".
(In this tutorial, our new arms seem to be set at appropriate angle.)




*** Use "Wheel Resize" function ***

Try to use "Wheel Resize" function when the wheels protrude from the tracks.


Select the "Create_###Wheel" in the tank, and enable the "Wheel Resize Script" option.
(In this tutorial, this option is already enabled in the "Create_IdleWheel" and the "Create_SprocketWheel".)


The wheels will be resized to the specified scale at the first frame, and they will return gently to the original size in the runtime.


When the tracks go through the small wheels such as SupportWheels, try to set the "Scale Size" value to greater than one.




    

*** Adjust the angle of the RoadWheels ***

If the RoadWheels protrude from the tracks, try to change the angle of the RoadWheels.


Select the "Create_RoadWheel" in the tank, and adjust the "Angle" value.
(In this tutorial, our new RoadWheels seem to be set at appropriate angle.)




*** Adjust the suspension spring settings ***

The tension of the tracks is affected by the suspension spring settings.
When the tracks are a little loose or tight, try to adjust the following values in the "Create_RoadWheel" in the tank.
In this tutorial, our new suspension spring seems to be weak, so adjust the settings as follows.




*** Adjust the "Solver Iteration Count" ***

We can adjust the tension of tracks also by adjusting the accuracy of HingeJoints in the tracks.
The accuracy can be adjusted by changing the "Solver Iteration Count" value in the "MainBody" in each tank.
When the tracks are always shaking because of the tightness, try to decrease this value.
When the tracks have stretched while driving, try to increase this value.
(In this tutorial, our new tracks have no problem in this value.)




*** Adjust the spacing of the track pieces ***

The "Spacing" value in the "Create_TrackBelt" should be the same as the length of the track piece, but you may adjust it a little as not to be noticeable.
(In this tutorial, our new tracks have no problem in this value.)




*** Increase the quality of physics simulation ***

This is the last resort and the simplest method to give the tracks realistic and beautiful movements.
You can increase the quality of physics simulation in the scene by reducing the "Fixed TimeStep" value.
However the stress on the processor will much increase, and it will affect the frame rate in the game scenes.

The value can be adjusted in the "Game_Controller" in the scene.
(In this tutorial, please do not change this value.)




Progress to the next section.

Our new "Physics_Track" has been completed.

Try to convert it to "Static_Track" that is suitable for the game scenes in the following sections.

Please progress to the next section 'How to convert "Physics_Track" to "Static_Track"'.