Click or drag to resize
DigitalRuneConstraintHelperComputeSpringConstant Method
Computes the spring constant from error reduction and softness parameters.

Namespace: DigitalRune.Physics.Constraints
Assembly: 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
)

Parameters

deltaTime
Type: SystemSingle
The time step size.
errorReduction
Type: SystemSingle
The error reduction parameter.
softness
Type: SystemSingle
The softness parameter.

Return Value

Type: Single
The spring constant.
See Also