| MassFrameDensity Property |
Gets or sets the density.
Namespace: DigitalRune.PhysicsAssembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax public float Density { get; set; }
Public Property Density As Single
Get
Set
public:
property float Density {
float get ();
void set (float value);
}
member Density : float32 with get, set
Property Value
Type:
SingleThe density. The default value is 1000.
Exceptions 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