| ConstraintHelperComputeSoftness Method |
Computes the softness parameter for a given spring and damping constant.
Namespace: DigitalRune.Physics.ConstraintsAssembly: 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
)
Public Shared Function ComputeSoftness (
deltaTime As Single,
springConstant As Single,
dampingConstant As Single
) As Single
public:
static float ComputeSoftness(
float deltaTime,
float springConstant,
float dampingConstant
)
static member ComputeSoftness :
deltaTime : float32 *
springConstant : float32 *
dampingConstant : float32 -> float32
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