| MassFrameAdjust Method |
Changes the mass so that it is equal to the given target mass and the related properties
(inertia) are scaled accordingly.
Namespace: DigitalRune.PhysicsAssembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax public void Adjust(
float targetMass
)
Public Sub Adjust (
targetMass As Single
)
public:
void Adjust(
float targetMass
)
member Adjust :
targetMass : float32 -> unit
Parameters
- targetMass
- Type: SystemSingle
The target mass.
Remarks
Scaling mass frames is simple: Just change the mass, and scale the inertia by the factor
mnew / mold. This is exactly what this method does.
See Also