BEPUphysics.UpdateableSystems.FluidVolume.FluidVolume C# (CSharp) Method

FluidVolume() public method

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.
return System
        public FluidVolume(Vector3 upVector, float gravity, List<Vector3[]> surfaceTriangles, float depth, float fluidDensity, float linearDamping, float angularDamping)
        {
            Gravity = gravity;
            SurfaceTriangles = surfaceTriangles;
            MaxDepth = depth;
            Density = fluidDensity;
            LinearDamping = linearDamping;
            AngularDamping = angularDamping;

            UpVector = upVector;

            analyzeCollisionEntryDelegate = AnalyzeEntry;

            DensityMultipliers = new Dictionary<Entity, float>();
        }