ドキュメント

Unity Engine

Unity Engine

frequency

The frequency at which the spring oscillates around the distance distance between the objects.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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 reestablish the desired distance between the objects. A damping ratio can be set to cause this oscillation to die down over time.
Additional Resources: SpringJoint2D.dampingRatio.