Vixen
02b45cc4
csharp
public readonly record struct ConstraintSpring

How 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 Frequency

    How stiff, in hertz. Zero is a hard limit, which is what a hinge stop wants.

  • public float Damping

    How quickly it settles, from 0 (rings for ever) to 1 (critically damped).

  • public static ConstraintSpring Hard

    No 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