Game Development Reference
In-Depth Information
Engage Thrusters
We will start with creaing the SmokePosition , which is the posiion of the smoke paricle
when the character fires the rocket.
1. Go to the Unity editor to create the smoke posiion by going to GameObject |
Create Empty to create an empty game object and name it SmokePosition , and
drag it inside the gun object, which is a child of the robot object, as shown in the
following screenshot. By doing this we will break the prefab again, so we just click on
continue to break it.
2. Then, we set Transform as follows:
Position : X: 1.5 , Y: -0.08 , Z: 0.25
Rotation : X: 90 , Y: 0 , Z: 0
Scale : X: 1 , Y: 1 , Z: 1
Now, we got the smoke posiion from the launcher barrel.
3. Next, create a smoke prefab object by going to the Project view, and click on the
folder in this order: Standard Assets | Particles | Smoke , we will see Fluffy
Smoke prefab, drag it to the Hierarchy view. Then, we will go to its Inspector view
and start changing the parameters as follows:
Ellispsoid Particle Emitter :
Min Size : 0.5
Max Size : 0.75
Min Energy : 0.75
Max Energy : 1.5
Min Emission : 8
 
Search WWH ::




Custom Search