Aerodynamic Objects Core 2.0.0
Loading...
Searching...
No Matches
AerodynamicObjects.Demos.PaperPlaneSpawner Class Reference

Spawns paper planes in the scene for the paper plane demo. More...

Inheritance diagram for AerodynamicObjects.Demos.PaperPlaneSpawner:
AerodynamicObjects.Utility.ObjectSpawner

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...
 

Detailed Description

Spawns paper planes in the scene for the paper plane demo.

Member Function Documentation

◆ Spawn()

override void AerodynamicObjects.Demos.PaperPlaneSpawner.Spawn ( )
virtual

Define the logic for creating/spawning the object.

Implements AerodynamicObjects.Utility.ObjectSpawner.

Member Data Documentation

◆ controlSurfaceRange

float AerodynamicObjects.Demos.PaperPlaneSpawner.controlSurfaceRange = 0.01f

The range over which random variations are applied to control surface deflection, radians.

◆ intialSpeed

float AerodynamicObjects.Demos.PaperPlaneSpawner.intialSpeed = 1

How fast spawned planes travel.

◆ meanControlSurfaceDeflection

float AerodynamicObjects.Demos.PaperPlaneSpawner.meanControlSurfaceDeflection = -0.1f

Sets the average trim state for planes.

Random variation is applied either side of this. In radians.

◆ paperPlanePrefab

GameObject AerodynamicObjects.Demos.PaperPlaneSpawner.paperPlanePrefab

◆ planeLife

float AerodynamicObjects.Demos.PaperPlaneSpawner.planeLife = 5

How long each plane exists in the scene before it is destroyed.

◆ spawnRadius

float AerodynamicObjects.Demos.PaperPlaneSpawner.spawnRadius = 2

Radius of sphere within which planes are spawned.

Sphere centre located at spawn target, m.

◆ spawnTarget

Transform AerodynamicObjects.Demos.PaperPlaneSpawner.spawnTarget

The documentation for this class was generated from the following file: