'How to change Turret' (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 how to convert Cromwell's turret into KV-I's turret.

In this project, the tank turret consists of three objects, Turret, Cannon and Barrel.

The turret objects are placed under the "Turret_Objects" in the Hierarchy window.
The "Turret_Objects" has three child objects "Turret_Base", "Cannon_Base" and "Barrel_Base".

*** How to change the Turret ***

(1) Change the values in the "Turret_Base".

Select the "Turret_Base" in the Hierarchy window, and find the "Turret_Base_CS (Script)" in the Inspector window.
We can change the "Mesh", "Materials" and "Colliders" of the turret from this script.
In this tutorial,set as follows.



(2) Set the position of the "Turret_Base".

Move the "Turret_Base" to the rotation pivot of the Turret.



(3) Change the values in the "Cannon_Base".

Select the "Cannon_Base" in the Hierarchy window, and find the "Cannon_Base_CS (Script)" in the Inspector window.
We can change the "Mesh", "Materials" and "Colliders" of the cannon from this script.
In this tutorial,set as follows.



(4) Set the position of the "Cannon_Base".

Move the "Cannon_Base" to the rotation pivot of the cannon.



(5) Change the values in the "Barrel_Base".

Select the "Barrel_Base" in the Hierarchy window, and find the "Barrel_Base_CS (Script)" in the Inspector window.
We can change the "Mesh", "Materials" and "Colliders" of the barrel from this script.
In this tutorial,set as follows.



(6) Set the position of the "Barrel_Base".

Move the "Barrel_Base" to the center of the barrel.



(7) Adjust the position of the "Bullet_Generator" and "Gun_Camera".

Move the "Bullet_Generator" and "Gun_Camera" to the the front of the muzzle.



(8) Test the new turret in the runtime.

Check the following points.
(Note.)
In this step, the turret is hanging in the air. Because the body is still Cromwell's one.


But if you like this tank, you can also adjust the position by changing each "Offset" value in the "Turret_Base", "Cannon_Base" and "Barrel_Base".

In this tutorial, please keep all the "Offset" values zero.


Progress to the next section.

We can also change the settings of the new turret, such as "Rotation Speed", "Reloading Time" and "Attack Power".
Please progress to the next section 'How to change Turret Settings'.