SpringJoint2D 弹簧二维关节
Namespace: UnityEngine
Namespace: UnityEngine/Inherits from:AnchoredJoint2D
Description 描述
Joint that attempts to keep two Rigidbody2D objects a set distance apart by applying a force between them.
关节,尝试通过应用它们之间的力量使两个 Rigidbody2D 对象设置的距离。
Note that unlike DistanceJoint2D, the length of the joint can stretch and oscillate.
请注意与 距离二维关节不同、 关节的长度可拉伸和摆动。
See Also: DistanceJoint2D class,,HingeJoint2D class,SliderJoint2D class.
Variables 变量
autoConfigureDistance | Should the distance be calculated automatically? 该距离是否自动被计算? |
|
dampingRatio | The amount by which the spring force is reduced in proportion to the movement speed. 数值为弹簧力减少的运动速度的比值 |
|
distance | The distance the spring will try to keep between the two objects. 这个距离即弹簧尽量保持在两个物体之间的距离。 |
|
frequency | The frequency at which the spring |