C# 클래스 BEPUphysics.UpdateableSystems.FluidVolume

Volume in which physically simulated objects have a buoyancy force applied to them based on their density and volume.
상속: Updateable, IDuringForcesUpdateable, ICollisionRulesOwner
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AnalyzeEntry void
GetBuoyancyInformation void
GetSamplingOrigin void
GetSubmergedHeight float
IDuringForcesUpdateable void

공개 메소드들

메소드 설명
FluidVolume ( Vector3 upVector, float gravity, List surfaceTriangles, float depth, float fluidDensity, float linearDamping, float angularDamping ) : System

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 ( EntityCollidable collidable, float &submergedVolume, Vector3 &submergedCenter ) : void
GetSamplingOrigin ( BoundingBox &entityBoundingBox, Vector3 &xSpacing, Vector3 &zSpacing, float &perColumnArea, Vector3 &origin ) : void
GetSubmergedHeight ( EntityCollidable collidable, float maxLength, float boundingBoxHeight, Vector3 &rayOrigin, Vector3 &xSpacing, Vector3 &zSpacing, int i, int j, Vector3 &volumeCenter ) : float
IDuringForcesUpdateable ( float dt ) : void

Applies buoyancy forces to appropriate objects. Called automatically when needed by the owning Space.

메소드 상세

FluidVolume() 공개 메소드

Creates a fluid volume.
public FluidVolume ( Vector3 upVector, float gravity, List surfaceTriangles, float depth, float fluidDensity, float linearDamping, float angularDamping ) : System
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

OnAdditionToSpace() 공개 메소드

public OnAdditionToSpace ( ISpace newSpace ) : void
newSpace ISpace
리턴 void

OnRemovalFromSpace() 공개 메소드

public OnRemovalFromSpace ( ISpace oldSpace ) : void
oldSpace ISpace
리턴 void

RecalculateBoundingBox() 공개 메소드

Recalculates the bounding box of the fluid based on its depth, surface normal, and surface triangles.
public RecalculateBoundingBox ( ) : void
리턴 void