|
Aerodynamic Objects Core 2.0.0
|
Spawns paper planes in the scene for the paper plane demo. More...
Public Member Functions | |
| override void | Spawn () |
| Define the logic for creating/spawning the object. More... | |
Public Member Functions inherited from AerodynamicObjects.Utility.ObjectSpawner | |
| virtual void | FixedUpdate () |
| When overriding this fixed update make sure to call base.FixedUpdate() so that the spawn timer still works. More... | |
| abstract void | Spawn () |
| Define the logic for creating/spawning the object. More... | |
Public Attributes | |
| GameObject | paperPlanePrefab |
| Transform | spawnTarget |
| float | spawnRadius = 2 |
| Radius of sphere within which planes are spawned. More... | |
| float | meanControlSurfaceDeflection = -0.1f |
| Sets the average trim state for planes. More... | |
| float | controlSurfaceRange = 0.01f |
| The range over which random variations are applied to control surface deflection, radians. More... | |
| float | planeLife = 5 |
| How long each plane exists in the scene before it is destroyed. More... | |
| float | intialSpeed = 1 |
| How fast spawned planes travel. More... | |
Public Attributes inherited from AerodynamicObjects.Utility.ObjectSpawner | |
| float | spawnRate |
| The frequency at which objects are spawned (number of objects per second). More... | |
Spawns paper planes in the scene for the paper plane demo.
|
virtual |
Define the logic for creating/spawning the object.
Implements AerodynamicObjects.Utility.ObjectSpawner.
| float AerodynamicObjects.Demos.PaperPlaneSpawner.controlSurfaceRange = 0.01f |
The range over which random variations are applied to control surface deflection, radians.
| float AerodynamicObjects.Demos.PaperPlaneSpawner.intialSpeed = 1 |
How fast spawned planes travel.
| float AerodynamicObjects.Demos.PaperPlaneSpawner.meanControlSurfaceDeflection = -0.1f |
Sets the average trim state for planes.
Random variation is applied either side of this. In radians.
| GameObject AerodynamicObjects.Demos.PaperPlaneSpawner.paperPlanePrefab |
| float AerodynamicObjects.Demos.PaperPlaneSpawner.planeLife = 5 |
How long each plane exists in the scene before it is destroyed.
| float AerodynamicObjects.Demos.PaperPlaneSpawner.spawnRadius = 2 |
Radius of sphere within which planes are spawned.
Sphere centre located at spawn target, m.
| Transform AerodynamicObjects.Demos.PaperPlaneSpawner.spawnTarget |