| ConstraintHelperComputeSpringConstant Method |
Computes the spring 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)
Syntax public static float ComputeSpringConstant(
float deltaTime,
float errorReduction,
float softness
)
Public Shared Function ComputeSpringConstant (
deltaTime As Single,
errorReduction As Single,
softness As Single
) As Single
public:
static float ComputeSpringConstant(
float deltaTime,
float errorReduction,
float softness
)
static member ComputeSpringConstant :
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 spring constant.
See Also