Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


frequency

The frequency at which the spring oscillates around the distance between the objects.
Read time 1 minuteLast updated 4 days ago

Definition

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

Remarks

The spring will oscillate with a certain frequency as it attempts to bring the two anchor points of the objects together. A _dampingRatio' can be set to cause this oscillation to die down over time.
Additional Resources: _dampingRatio