Obi  7.0.5
Unified particle physics for Unity
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Obi.ObiFoamGenerator Class Reference
Inheritance diagram for Obi.ObiFoamGenerator:
Obi.ObiActorRenderer< T > Obi.IActorRenderer Obi.ObiRenderer< T >

Public Member Functions

void Awake ()
 
void OnEnable ()
 
void OnDisable ()
 
void OnValidate ()
 
- Public Member Functions inherited from Obi.ObiActorRenderer< T >
void EnableRenderer ()
 
void DisableRenderer ()
 
void SetRendererDirty (Oni.RenderingSystemType type)
 
- Public Member Functions inherited from Obi.ObiRenderer< T >
bool ValidateRenderer ()
 
void CleanupRenderer ()
 

Public Attributes

float foamGenerationRate = 100
 
float foamPotential = 50
 
float foamPotentialDiffusion = 0.95f
 
Vector2 velocityRange = new Vector2(2, 4)
 
Vector2 vorticityRange = new Vector2(4, 8)
 
Color color = new Color(1,1,1,0.25f)
 
float size = 0.02f
 
float sizeRandom = 0.2f
 
float lifetime = 5
 
float lifetimeRandom = 0.2f
 
float buoyancy = 0.5f
 
float drag = 0.5f
 
float atmosphericDrag = 0.5f
 
float airAging = 2
 
float isosurface = 0.02f
 
float pressure = 1
 
float density = 0.3f
 
float smoothingRadius = 2.5f
 
float surfaceTension = 2
 

Properties

ObiActor actor [get, set]
 
- Properties inherited from Obi.IActorRenderer
ObiActor actor [get]
 

Additional Inherited Members

- Protected Member Functions inherited from Obi.ObiActorRenderer< T >
void ObiActorRenderer_OnBlueprintUnloaded (ObiActor act, ObiActorBlueprint blueprint)
 
- Protected Member Functions inherited from Obi.ObiRenderer< T >
bool UnregisterRenderer (ObiSolver solver)
 
bool RegisterRenderer (ObiSolver solver)
 

Detailed Description

Foam generators create diffuse particles in areas where certain conditions meet (high velocity constrasts, high vorticity, low density, high normal values, etc.). These particles are then advected trough the fluid velocity field.


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