|
Aerodynamic Objects Core 2.0.0
|
Flow primitives are used to define the velocity behaviour of the fluid. More...
Public Member Functions | |
| void | GetInteractionID () |
| Obtains a unique interaction ID for the object. More... | |
| virtual void | Awake () |
| virtual void | OnEnable () |
| virtual void | OnDestroy () |
| virtual void | OnDisable () |
| void | AddSelfToScene () |
| void | AcquireFluidVolume (FluidVolume fluidVolume) |
| void | RemoveFromScene () |
| Vector3 | VelocityFunction (Vector3 position, int flowAffectedID) |
| Wrapper function which first checks if the interaction should happen. More... | |
| virtual Vector3 | VelocityFunction (Vector3 position) |
| Override this function to change the way the velocity of the fluid is calculated. More... | |
| bool | IsInteractionIgnored (int flowAffectedID) |
| void | IgnoreInteraction (int flowAffectedID) |
| void | IgnoreInteraction (FlowAffected flowAffected) |
| void | AddSelfToGlobalFluid () |
| void | RemoveSelfFromGlobalFluid () |
Public Attributes | |
| float | strengthScale = 1f |
| This value is used to scale the flow primitive behaviour. More... | |
| int | interactionID = 0 |
| The unique ID number for this flow primitive, used for identifying pairs of ignored interactions by the FlowInteractionManager. More... | |
Flow primitives are used to define the velocity behaviour of the fluid.
By default, flow primitives will affect the global velocity of the fluid, i.e. they will affect every IFluidInteractive object in the scene. They can be restricted to a specific domain by adding a FluidDomain component to the same object or to any parent of the Flow Primitive.
| void AerodynamicObjects.FlowPrimitive.AcquireFluidVolume | ( | FluidVolume | fluidVolume | ) |
| void AerodynamicObjects.FlowPrimitive.AddSelfToGlobalFluid | ( | ) |
| void AerodynamicObjects.FlowPrimitive.AddSelfToScene | ( | ) |
|
virtual |
Reimplemented in AerodynamicObjects.Flow.DisplacementBody, and AerodynamicObjects.Flow.PointSource.
| void AerodynamicObjects.FlowPrimitive.GetInteractionID | ( | ) |
Obtains a unique interaction ID for the object.
Should be called when the object is created.
| void AerodynamicObjects.FlowPrimitive.IgnoreInteraction | ( | FlowAffected | flowAffected | ) |
| void AerodynamicObjects.FlowPrimitive.IgnoreInteraction | ( | int | flowAffectedID | ) |
| bool AerodynamicObjects.FlowPrimitive.IsInteractionIgnored | ( | int | flowAffectedID | ) |
|
virtual |
Reimplemented in AerodynamicObjects.Flow.VortexFilament.
|
virtual |
|
virtual |
Reimplemented in AerodynamicObjects.Flow.VortexFilament.
| void AerodynamicObjects.FlowPrimitive.RemoveFromScene | ( | ) |
| void AerodynamicObjects.FlowPrimitive.RemoveSelfFromGlobalFluid | ( | ) |
Override this function to change the way the velocity of the fluid is calculated.
| position | Position of the object in the global (earth) frame of reference. |
Reimplemented in AerodynamicObjects.Demos.FlowRoundAnAerofoil, AerodynamicObjects.Demos.LiftingFlowAroundACylinder, AerodynamicObjects.Flow.AreaSource, AerodynamicObjects.Flow.DisplacementBody, AerodynamicObjects.Flow.LineSource, AerodynamicObjects.Flow.PointSource, AerodynamicObjects.Flow.UniformFlow, and AerodynamicObjects.Flow.VortexFilament.
Wrapper function which first checks if the interaction should happen.
If the interaction is ignored then returns a zero velocity vector. Otherwise, the regular VelocityFunction(position) is returned.
| position | Position of the object in the global (earth) frame of reference. |
| flowAffectedID | The interaction ID of the object which is being affected by this flow primitive |
| int AerodynamicObjects.FlowPrimitive.interactionID = 0 |
The unique ID number for this flow primitive, used for identifying pairs of ignored interactions by the FlowInteractionManager.
| float AerodynamicObjects.FlowPrimitive.strengthScale = 1f |
This value is used to scale the flow primitive behaviour.
For example, the LifeSpan class will change this value for a flow primitive to give the effect of the flow primitive decaying over time. For this value to properly work, the velocity returned by the flow primitive should be scaled by this Strength Scale value.
Overal multiplier to the strength of the effect, value of 1 by default. Useful for fading in or out the effect via code or quickly experimenting with effect strength in the inspector.