Click or drag to resize
DigitalRuneRigidBodyAutoUpdateMass Property
Gets or sets a value indicating whether the MassFrame is automatically updated if the Shape or Scale of this body is changed.

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

Property Value

Type: Boolean
if the MassFrame is automatically updated when the Shape or Scale is changed; otherwise, . The default value is .
Remarks

If the Shape or the Scale of a rigid body is changed, the mass properties should usually change too. If this property is MassFrame is automatically updated. If the current MassFrame was computed for a certain density (see FromShapeAndDensity(Shape, Vector3F, Single, Single, Int32)), the new MassFrame will use the same density. If the current MassFrame was computed for a certain total target mass (see FromShapeAndMass(Shape, Vector3F, Single, Single, Int32)), the new MassFrame will use the same total target mass. (If the MassFrame is not set manually, rigid bodies use an automatic computed mass for a target density of 1000.) If this property is , the MassFrame is not adjusted when the shape or scale is changed.

See Also