Aerodynamic Objects Core 2.0.0
Loading...
Searching...
No Matches
AerodynamicObjects.Utility.FlowPrimitiveLifeTimer Class Reference

Applies a life timer to a flow primitive, destroying the entire GameObject after a set amount of time. More...

Inheritance diagram for AerodynamicObjects.Utility.FlowPrimitiveLifeTimer:

Public Attributes

AnimationCurve strengthScaleOverTimeCurve = new AnimationCurve(new Keyframe[] { new(0, 0), new(.1f, 1), new(1, 0) })
 
float lifeSpanDuration = 10f
 

Detailed Description

Applies a life timer to a flow primitive, destroying the entire GameObject after a set amount of time.

Also applies a strength over time curve to the strength scale of the flow primitive. Will affect all flow primitives that are children of the object that this component is attached to (including the object itself).

Member Data Documentation

◆ lifeSpanDuration

float AerodynamicObjects.Utility.FlowPrimitiveLifeTimer.lifeSpanDuration = 10f

◆ strengthScaleOverTimeCurve

AnimationCurve AerodynamicObjects.Utility.FlowPrimitiveLifeTimer.strengthScaleOverTimeCurve = new AnimationCurve(new Keyframe[] { new(0, 0), new(.1f, 1), new(1, 0) })

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