|
Aerodynamic Objects Core 2.0.0
|
Spawns point source flow primitives randomly within a sphere of a given radius. 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 | |
| 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... | |
Spawns point source flow primitives randomly within a sphere of a given radius.
|
virtual |
Define the logic for creating/spawning the object.
Implements AerodynamicObjects.Utility.ObjectSpawner.
| bool AerodynamicObjects.Demos.SourceSpawner.isDynamic = true |
Object moves with the flow.
| bool AerodynamicObjects.Demos.SourceSpawner.isTemporal = true |
Object has finite life.
| float AerodynamicObjects.Demos.SourceSpawner.life = 1f |
Life of object in seconds.
| float AerodynamicObjects.Demos.SourceSpawner.sourceStrength = 1f |
| float AerodynamicObjects.Demos.SourceSpawner.spawnRadius = 0 |
Objects are spawned randomly within a sphere of this radius.
Set to 0 to spawn at a point.
| AnimationCurve AerodynamicObjects.Demos.SourceSpawner.strengthOverTime |
How strength scale should vary over the liftime of the object.