用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:springjoint2d:springjoint2d

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 变量

autoConfigureDistanceShould 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 oscillates around the distance between the objects.
这个频率即弹簧在来回摆动的频率,而这个摆动围绕着两个物体间的距离摆动。
script/unityengine/classes/springjoint2d/springjoint2d.txt · 最后更改: 2016/08/02 05:34 (外部编辑)