Version: 2023.2
言語: 日本語
public bool useConnectedAnchor ;

説明

Controls whether the connected anchor is used or not.

By default, this property is enabled which results in the Joint2D.connectedBody and AnchoredJoint2D.connectedAnchor properties being used to constrain the position of the Rigidbody2D the HingeJoint2D is attached to. This is known as a point-to-point constraint.

When this property is disabled, the point-to-point constraint is disabled. This stops the HingeJoint2D from being connected to its anchor point allowing the Rigidbody2D it is added to, to move freely.

Disabling this allows both the motor and limits to be used to constrain and modify angular motion while not constraining linear motion.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961