Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

SpringJoint2D.frequency

Switch to Manual
public float frequency;

Description

The frequency at which the spring oscillates around the distance distance between the objects.

The spring will oscillate with a certain frequency as it attempts to reestablish the desired distance between the objects. A damping ratio can be set to cause this oscillation to die down over time.

See Also: dampingRatio.