用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:distancejoint2d:distancejoint2d

DistanceJoint2D距离二维关节

Namespace: UnityEngine

Namespace: UnityEngine/Inherits from:AnchoredJoint2D

Description 描述

Joint that keeps two Rigidbody2D objects a fixed distance apart.

关节,使两个二维刚体对象保持在一个固定的距离。

Note that unlike the SpringJoint2D component, the distance separating the objects is truly fixed and does not allow for any stretching.

注意与弹簧二维关节组件不同的是,分开的物体的距离被切实固定,并且不允许任何拉伸。

See Also: HingeJoint2D class,SliderJoint2D class,SpringJoint2D class.

Variables 变量

autoConfigureDistanceShould the distance be calculated automatically?
是否自动计算距离?
ditance The distance separating the two ends of the joint.
关节的两端分开的距离
maxDistanceOnly Whether to maintain a maximum distance only or not. If not then the absolute distance will be maintained instead.
是否仅支持一个最大距离。如果不支持,绝对距离将被支持替代。
script/unityengine/classes/distancejoint2d/distancejoint2d.txt · 最后更改: 2016/08/02 05:36 (外部编辑)