Obi  6.4
Unified particle physics for Unity
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Obi.ObiFluidEmitterBlueprint Class Reference
Inheritance diagram for Obi.ObiFluidEmitterBlueprint:
Obi.ObiEmitterBlueprintBase Obi.ObiActorBlueprint Obi.IObiParticleCollection

Public Member Functions

void OnValidate ()
 
float GetSmoothingRadius (Oni.SolverParameters.Mode mode)
 
- Public Member Functions inherited from Obi.ObiEmitterBlueprintBase
float GetParticleSize (Oni.SolverParameters.Mode mode)
 
float GetParticleMass (Oni.SolverParameters.Mode mode)
 
- Public Member Functions inherited from Obi.ObiActorBlueprint
delegate void BlueprintCallback (ObiActorBlueprint blueprint)
 
bool IsParticleActive (int index)
 
bool ActivateParticle (int index)
 
bool DeactivateParticle (int index)
 
void RecalculateBounds ()
 
IEnumerable< IObiConstraintsGetConstraints ()
 
IObiConstraints GetConstraintsByType (Oni.ConstraintType type)
 
int GetParticleRuntimeIndex (int blueprintIndex)
 
Vector3 GetParticlePosition (int index)
 
Quaternion GetParticleOrientation (int index)
 
void GetParticleAnisotropy (int index, ref Vector4 b1, ref Vector4 b2, ref Vector4 b3)
 
float GetParticleMaxRadius (int index)
 
Color GetParticleColor (int index)
 
void GenerateImmediate ()
 
IEnumerator Generate ()
 
void Clear ()
 
ObiParticleGroup InsertNewParticleGroup (string name, int index, bool saveImmediately=true)
 
ObiParticleGroup AppendNewParticleGroup (string name, bool saveImmediately=true)
 
bool RemoveParticleGroupAt (int index, bool saveImmediately=true)
 
bool SetParticleGroupName (int index, string name, bool saveImmediately=true)
 
void ClearParticleGroups (bool saveImmediately=true)
 
void RemoveSelectedParticles (ref bool[] selected, bool optimize=true)
 
void RestoreRemovedParticles ()
 
virtual void GenerateTethers (bool[] selected)
 
virtual void ClearTethers ()
 

Public Attributes

float smoothing = 2f
 
float viscosity = 0.05f
 
float surfaceTension = 1f
 
float buoyancy = -1.0f
 
float atmosphericDrag = 0.0f
 
float atmosphericPressure = 0.0f
 
float vorticity = 0.0f
 
float diffusion = 0.0f
 
Vector4 diffusionData
 
- Public Attributes inherited from Obi.ObiEmitterBlueprintBase
uint capacity = 1000
 
float resolution = 1
 
float restDensity = 1000
 
- Public Attributes inherited from Obi.ObiActorBlueprint
Vector3[] positions = null
 
Vector4[] restPositions = null
 
Quaternion[] orientations = null
 
Quaternion[] restOrientations = null
 
Vector3[] velocities = null
 
Vector3[] angularVelocities = null
 
float[] invMasses = null
 
float[] invRotationalMasses = null
 
int[] filters = null
 
Vector3[] principalRadii = null
 
Color[] colors = null
 
int[] points = null
 
int[] edges = null
 
int[] triangles = null
 
ObiDistanceConstraintsData distanceConstraintsData = null
 
ObiBendConstraintsData bendConstraintsData = null
 
ObiSkinConstraintsData skinConstraintsData = null
 
ObiTetherConstraintsData tetherConstraintsData = null
 
ObiStretchShearConstraintsData stretchShearConstraintsData = null
 
ObiBendTwistConstraintsData bendTwistConstraintsData = null
 
ObiShapeMatchingConstraintsData shapeMatchingConstraintsData = null
 
ObiAerodynamicConstraintsData aerodynamicConstraintsData = null
 
ObiChainConstraintsData chainConstraintsData = null
 
ObiVolumeConstraintsData volumeConstraintsData = null
 
List< ObiParticleGroupgroups = new List<ObiParticleGroup>()
 

Additional Inherited Members

- Protected Member Functions inherited from Obi.ObiEmitterBlueprintBase
override IEnumerator Initialize ()
 
- Protected Member Functions inherited from Obi.ObiActorBlueprint
virtual void SwapWithFirstInactiveParticle (int index)
 
- Protected Attributes inherited from Obi.ObiActorBlueprint
bool m_Empty = true
 
int m_ActiveParticleCount = 0
 
int m_InitialActiveParticleCount = 0
 
Bounds _bounds = new Bounds()
 
- Properties inherited from Obi.ObiActorBlueprint
int particleCount [get]
 
int activeParticleCount [get]
 
bool usesOrientedParticles [get]
 
virtual bool usesTethers [get]
 
bool empty [get]
 
Bounds bounds [get]
 
- Properties inherited from Obi.IObiParticleCollection
int particleCount [get]
 
int activeParticleCount [get]
 
bool usesOrientedParticles [get]
 
- Events inherited from Obi.ObiActorBlueprint
BlueprintCallback OnBlueprintGenerate
 

Member Data Documentation

float Obi.ObiFluidEmitterBlueprint.atmosphericDrag = 0.0f

amount of drag applied by the surrounding air to particles near the surface of the material.

float Obi.ObiFluidEmitterBlueprint.atmosphericPressure = 0.0f

amount of pressure applied by the surrounding air particles.

float Obi.ObiFluidEmitterBlueprint.buoyancy = -1.0f

how dense is this material with respect to air?

Vector4 Obi.ObiFluidEmitterBlueprint.diffusionData

values affected by diffusion.

float Obi.ObiFluidEmitterBlueprint.surfaceTension = 1f

surface tension of the fluid particles.

float Obi.ObiFluidEmitterBlueprint.viscosity = 0.05f

viscosity of the fluid particles.

float Obi.ObiFluidEmitterBlueprint.vorticity = 0.0f

amount of vorticity confinement.


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