Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


frequency

The frequency at which the target spring oscillates around the target position.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public float frequency { get; set; }

Remarks

The target spring will oscillate with a certain frequency as it attempts to reestablish the desired target position. A TargetJoint2D.dampingRatio' can be set to cause this oscillation to die down over time.
Additional Resources: TargetJoint2D.dampingRatio.