主题
RigidConstraint
RigidConstraint 描述两个 Attachment 实例之间的刚性连接;当前公开契约可通过 Attachment0/Attachment1 直接引用端点。
概览
RigidConstraint 描述两个 Attachment 实例之间的刚性连接;当前公开契约可通过 Attachment0/Attachment1 直接引用端点。
继承自
Unit;可通过World:CreateUnit("RigidConstraint", ...)创建;返回单个单位
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
Enabled | Bool | true | 控制 RigidConstraint 是否启用。 |
Attachment0 | Attachment | - | RigidConstraint 约束关联的第一个 Attachment 附件。约束通过两个 Attachment 确定被连接对象上的作用点,Attachment0 即为这一对附件中的第一个端点。 |
Attachment1 | Attachment | - | RigidConstraint 约束关联的第二个 Attachment 附件。与 Attachment0 成对使用,用于确定刚性连接的另一侧锚点。 |
Active | Bool | false | 指示 RigidConstraint 当前是否处于激活状态。 |
