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

Spawns point source flow primitives randomly within a sphere of a given radius. More...

Inheritance diagram for AerodynamicObjects.Demos.SourceSpawner:
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

float sourceStrength = 1f
 
bool isDynamic = true
 Object moves with the flow. More...
 
bool isTemporal = true
 Object has finite life. More...
 
float life = 1f
 Life of object in seconds. More...
 
AnimationCurve strengthOverTime
 How strength scale should vary over the liftime of the object. More...
 
float spawnRadius = 0
 Objects are spawned randomly within a sphere of this radius. 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 point source flow primitives randomly within a sphere of a given radius.

Member Function Documentation

◆ Spawn()

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

Define the logic for creating/spawning the object.

Implements AerodynamicObjects.Utility.ObjectSpawner.

Member Data Documentation

◆ isDynamic

bool AerodynamicObjects.Demos.SourceSpawner.isDynamic = true

Object moves with the flow.

◆ isTemporal

bool AerodynamicObjects.Demos.SourceSpawner.isTemporal = true

Object has finite life.

◆ life

float AerodynamicObjects.Demos.SourceSpawner.life = 1f

Life of object in seconds.

◆ sourceStrength

float AerodynamicObjects.Demos.SourceSpawner.sourceStrength = 1f

◆ spawnRadius

float AerodynamicObjects.Demos.SourceSpawner.spawnRadius = 0

Objects are spawned randomly within a sphere of this radius.

Set to 0 to spawn at a point.

◆ strengthOverTime

AnimationCurve AerodynamicObjects.Demos.SourceSpawner.strengthOverTime

How strength scale should vary over the liftime of the object.


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