Click or drag to resize
DigitalRuneConstraintHelperComputeSoftness Method
Computes the softness parameter for a given spring and damping constant.

Namespace: DigitalRune.Physics.Constraints
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
public static float ComputeSoftness(
	float deltaTime,
	float springConstant,
	float dampingConstant
)

Parameters

deltaTime
Type: SystemSingle
The time step size.
springConstant
Type: SystemSingle
The spring constant.
dampingConstant
Type: SystemSingle
The damping constant.

Return Value

Type: Single
The softness parameter that lets the constraint behave like a damped spring with the given parameters.
See Also