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

Spawns contiguous (connected) line vortex filaments over time. More...

Inheritance diagram for AerodynamicObjects.Demos.ContiguousLineVortexSpawner:
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 initialStrength = 1f
 
float coreRadius = 0.01f
 
AnimationCurve strengthOverTime = new AnimationCurve(new Keyframe[] { new(0, 0), new(.1f, 1), new(1, 0) })
 Realistic wakes increase in strength just downstream of the body then eventually fade to zero. More...
 
float life
 
- 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 contiguous (connected) line vortex filaments over time.

Member Function Documentation

◆ Spawn()

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

Define the logic for creating/spawning the object.

Implements AerodynamicObjects.Utility.ObjectSpawner.

Member Data Documentation

◆ coreRadius

float AerodynamicObjects.Demos.ContiguousLineVortexSpawner.coreRadius = 0.01f

◆ initialStrength

float AerodynamicObjects.Demos.ContiguousLineVortexSpawner.initialStrength = 1f

◆ life

float AerodynamicObjects.Demos.ContiguousLineVortexSpawner.life

◆ strengthOverTime

AnimationCurve AerodynamicObjects.Demos.ContiguousLineVortexSpawner.strengthOverTime = new AnimationCurve(new Keyframe[] { new(0, 0), new(.1f, 1), new(1, 0) })

Realistic wakes increase in strength just downstream of the body then eventually fade to zero.

The time scale is linked to the wake length so that end point of the curve is the end of the wake.


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