csharp
public readonly record struct ConstraintSpringHow a constraint's limits are sprung.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (3)
public float FrequencyHow stiff, in hertz. Zero is a hard limit, which is what a hinge stop wants.
public float DampingHow quickly it settles, from 0 (rings for ever) to 1 (critically damped).
public static ConstraintSpring HardNo spring. The limit is hard.
Methods (2)
public ConstraintSpring(float Frequency, float Damping)How a constraint's limits are sprung.
public static ConstraintSpring Soft(float frequency, float damping = 0.5)A spring.
Used by (3)
- ConstraintDescriptionVixen.Physics
- PhysicsWorldVixen.Physics
- Vixen_Physics_Constraints_ConstraintDescriptionSerializerVixen.Physics