Свойство | Тип | Описание | |
---|---|---|---|
AnalyzeEntry | void | ||
GetBuoyancyInformation | void | ||
GetSamplingOrigin | void | ||
GetSubmergedHeight | float | ||
IDuringForcesUpdateable | void |
Метод | Описание | |
---|---|---|
FluidVolume ( Vector3 upVector, float gravity, List |
Creates a fluid volume.
|
|
OnAdditionToSpace ( ISpace newSpace ) : void | ||
OnRemovalFromSpace ( ISpace oldSpace ) : void | ||
RecalculateBoundingBox ( ) : void |
Recalculates the bounding box of the fluid based on its depth, surface normal, and surface triangles.
|
Метод | Описание | |
---|---|---|
AnalyzeEntry ( int i ) : void | ||
GetBuoyancyInformation ( |
||
GetSamplingOrigin ( BoundingBox &entityBoundingBox, Vector3 &xSpacing, Vector3 &zSpacing, float &perColumnArea, Vector3 &origin ) : void | ||
GetSubmergedHeight ( |
||
IDuringForcesUpdateable ( float dt ) : void |
Applies buoyancy forces to appropriate objects. Called automatically when needed by the owning Space.
|
public FluidVolume ( Vector3 upVector, float gravity, List |
||
upVector | Vector3 | Up vector of the fluid volume. |
gravity | float | Strength of gravity for the purposes of the fluid volume. |
surfaceTriangles | List |
List of triangles composing the surface of the fluid. Set up as a list of length 3 arrays of Vector3's. |
depth | float | Depth of the fluid back along the surface normal. |
fluidDensity | float | Density of the fluid represented in the volume. |
linearDamping | float | Fraction by which to reduce the linear momentum of floating objects each update, in addition to any of the body's own damping. |
angularDamping | float | Fraction by which to reduce the angular momentum of floating objects each update, in addition to any of the body's own damping. |
Результат | System |
public OnAdditionToSpace ( ISpace newSpace ) : void | ||
newSpace | ISpace | |
Результат | void |
public OnRemovalFromSpace ( ISpace oldSpace ) : void | ||
oldSpace | ISpace | |
Результат | void |