Smoke Simulator#
Simulating smoke in AWSIM may be useful when one wants to simulate exhaust gases from vehicles, smoke from emergency flare, etc.
In Unity, it is common to use Particle System to simulate smokes. However, smoke simulated by Particle System cannot be sensed by RGL in AWSIM although in reality, smokes are detected by LiDAR.
Smoke Simulator was developed to simulate smokes that can be detected by RGL in Unity.
Smoke Simulator works by instantiating many small cubic GameObjects called Smoke Particles and allows each particle to be detected by RGL.
This document describes how to use the Smoke Simulator.
Setting Smoke Simulator#
1.Create an empty GameObject
2.Attach SmokeGenerator.cs to the previously created GameObject.

3.Adjust the parameters of the SmokeGenerator as described below:
Max Particle: Specifies the maximum number of particles created by theSmoke GeneratorParticle Range Radius: Specifies the radius of a circle, centered at the GameObject, which defines the region in whichSmoke Particlesare generated inParticle Size: Specifies the edge of aSmoke ParticleAverage Lifetime: Specifies the average lifetime of aSmoke Particle-
Variation Lifetime: Specifies the variation of lifetime ofSmoke Particles.The lifetime of a
Smoke Particleis calculated as follows:`lifetime` = `Average Lifetime` + Random.Range(-`Variation Lifetime`, `Variation Lifetime`)
Physics: These parameters can be adjusted to specify the behavior of the smoke particles.Initial Plane Velocity: Specifies the velocity of aSmokeParticlein the x-z planeInitial Vertical Velocity: Specifies the velocity of aSmokeParticlein the vertical directionPlane Acceleration: Specifies the acceleration of aSmokeParticlein the x-z planeVertical Acceleration: Specifies the acceleration of aSmokeParticlein the vertical direction
4.(Optional): You may also specify the Material of Smoke Particles. If this field is unspecified, a default material is used

Example of Different Smokes#
Thin Smoke#

Heavy Smoke#
