Skip to content

RigidConstraint ​

RigidConstraint 描述两个 Attachment 实例之间的刚性连接;当前公开契约可通过 Attachment0/Attachment1 直接引用端点。

概览 ​

RigidConstraint 描述两个 Attachment 实例之间的刚性连接;当前公开契约可通过 Attachment0/Attachment1 直接引用端点。

继承自 Unit;可通过 World:CreateUnit("RigidConstraint", ...) 创建;返回单个单位

属性 ​

名称类型默认值说明
EnabledBooltrue控制 RigidConstraint 是否启用。
Attachment0Attachment-RigidConstraint 的 Attachment0 属性表示刚性约束一端的连接点,取值为 Attachment 实例,用于与 Attachment1 共同确定这条刚性约束连接的两个位置。
Attachment1Attachment-RigidConstraint 的 Attachment1 属性表示刚性约束另一端的连接点,取值为 Attachment 实例,与 Attachment0 一起构成刚性约束的两个连接位置。
ActiveBoolfalse指示 RigidConstraint 当前是否处于激活状态。