Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
5 views9 pages

PTM3.2 Manual (3-10) 'How To Create - Static - Track - '

QUEST UNITY

Uploaded by

soldierac1300
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views9 pages

PTM3.2 Manual (3-10) 'How To Create - Static - Track - '

QUEST UNITY

Uploaded by

soldierac1300
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

'How to create "Static_Track"' (Ver.3.

2)
Please feel free to contact me if you have any questions.
[email protected]
http://chobi-glass.com/Unity/index.html

*** Outline ***


This section shows how to convert "Physics_Track" made in the previous steps into "Static_Track".
(Note.)
This project has three kinds of tracks "Physics_Track", "Static_Track" and "Scroll_Track".
● "Physics_Track"
All the pieces are moved by physics simulation.
The motion is very realistic, but it will be heavy load in the game scenes.
● "Static_Track"
All the pieces are controlled by some scripts.
The motion is not bad, and it will be suitable for the game scenes.
● "Scroll_Track"
A simple belt-shaped track with texture-scrolling and deforming.
The motion and the appearance are poor, but it will be light load in the game scenes.

"Static_Track" is created by converting from "Physics_Track" deformed physically in the runtime.


So the "Physics_Tracks" must have the ideal shape while stopping.
(Tip.)
It is not necessary that the "Physics_Tracks" work perfectly while driving.

(Note.)
You need to Unpack Prefab to create "Static_Track".
*** How to create "Static_Track" ***

(1) Back up the tank.


Please back up your tank by creating a new prefab.
About how to create a tank prefab, please read 'How to save Tank Prefab'.

(2) Unpack the prefab instance.


Select the "Create_TrackBelt", and press the "Unpack Prefab" button.

(3) Enable the "for Static Track" option.


Enable the "for 'Static Track'" option.

(4) Enter the play mode.


Press the Play button to enter the play mode.

(5) Press the "Create Prefab in 'User' folder" button.


Make sure that the tracks are deformed physically, and have the ideal shape.

And press the "Create Prefab in 'User' folder" button.


(Tip.)
The camera operation will be canceled after a few seconds, because the scene is paused to keep the shape of
the tracks.
Please switch to the Scene View if you need to watch the tracks more closely.
(6) Find the new "Static_Track" in "User" folder.
You can find the new "Static_Track" named as "Static_Track ###_###" in "User" folder.

(7) Attach the new "Static_Track" into the tank.


Drag and drop the new "Static_Track" into the "MainBody" of the tank in the Hierarchy window.
And make sure it is placed under the "MainBody" as a child.

(8) Remove the "Create_TrackBelt".


The "Physics_Track" is no longer required.
Remove or inactivate the "Create_TrackBelt" in the tank.
(9) Unpack the prefab instance.
Select the "Static_Track" in the tank, and press the "Unpack Prefab" button.

(10) Setup the "Static_Track".


The basic settings of "Static_Track" are set almost automatically.
Please follow the procedure below.
1. Press the "Set Automatically" button.

Make sure that the following values are set automatically.


2. Select the "MainBody", and press the "Update Values" button.

The "Mass" and the "Solver Iteration Count" values will be updated automatically.
The weight of the body should be increased as the weight of all the track pieces, because the piece of "
Static_Track" does not have weight.
Also the "Solver Iteration Count" can be reduced to 10, because "Static_Track" does not require the hig
h accuracy in the physics simulation.
3. Update the RoadWheels.
Press the "Update using stored values" button in the "Create_RoadWheel".

Make sure that the RoadWheels have been updated to fit for the new tracks.
4. Update other wheels in the tank.
Press the "Update Values" button in the following components.
"Create_IdlerWheel"
"Create_SprocketWheel"
"Create_SupportWheel"
(11) Test the new tracks in the runtime.
Test the new "Static_Track" while driving and turning the tank on the field.
Check the following points.
● The tracks deform according to the terrain
● The wheels rotate synchronizing with the tracks.
● The tank is able to turn smoothly.

Progress to the next section.


We have got the new "Static_Track".

When the tracks work normally, proceed to 'How to use "SwingBalls"' to implement swaying movement.
When the tracks has some issues, please refer to the next section 'How to fix "Static_Track"'.

You might also like