frequency
The frequency at which the spring oscillates around the 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 bring the two anchor points of the objects together. A FixedJoint2D.dampingRatio' can be set to cause this oscillation to die down over time.
Additional Resources: FixedJoint2D.dampingRatio.