 | ConstraintHelperComputeDampingConstant Method |
Computes the damping constant from error reduction and softness parameters.
Namespace: DigitalRune.Physics.ConstraintsAssembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntaxpublic static float ComputeDampingConstant(
float deltaTime,
float errorReduction,
float softness
)
Public Shared Function ComputeDampingConstant (
deltaTime As Single,
errorReduction As Single,
softness As Single
) As Single
public:
static float ComputeDampingConstant(
float deltaTime,
float errorReduction,
float softness
)
static member ComputeDampingConstant :
deltaTime : float32 *
errorReduction : float32 *
softness : float32 -> float32
Parameters
- deltaTime
- Type: SystemSingle
The time step size. - errorReduction
- Type: SystemSingle
The error reduction parameter. - softness
- Type: SystemSingle
The softness parameter.
Return Value
Type:
SingleThe damping constant.
See Also