Click or drag to resize
DigitalRuneMassFrameDensity Property
Gets or sets the density.

Namespace: DigitalRune.Physics
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
public float Density { get; set; }

Property Value

Type: Single
The density. The default value is 1000.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionvalue is negative.
Remarks
If this MassFrame instance was created with FromShapeAndDensity(Shape, Vector3F, Single, Single, Int32) the density is the density that was given in the FromShapeAndDensity(Shape, Vector3F, Single, Single, Int32) call. If this MassFrame instance was created with FromShapeAndMass(Shape, Vector3F, Single, Single, Int32) the density is set to 0 to indicate that the MassFrame was computed for a given target mass.
See Also