Field DefaultSpringFrequency
The default spring frequency.
(Immutable) Current default values give tau = 0.6 damping = 0.99 at 60hz The values are huge and we can't get damping = 1 -- a stiff constraint is the limit of a damped spring as spring params go to infinity. Rather than baking them these values could be calculated using JacobianUtilities.CalculateSpringFrequencyAndDamping(0.6f, 0.99f, math.rcp(60.0f), 4, out DefaultSpringFrequency, out DefaultDampingRatio);
Namespace: Unity.Physics
Assembly: solution.dll
Syntax
public const float DefaultSpringFrequency = 74341.31
Returns
Type | Description |
---|---|
float |