Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Constraint

关节约束的基类,它依赖于刚体组件。

Hierarchy

Index

Constructors

constructor

Properties

Readonly TYPE

获取此关节的类型。

Protected _connectedBody

_connectedBody: RigidBody | null = null

Protected _constraint

_constraint: IBaseConstraint | null = null

Protected _enableCollision

_enableCollision: boolean = true

Static Readonly Type

Type: EnumAlias<typeof EConstraintType> = EConstraintType

关节类型的枚举。

Accessors

attachedBody

connectedBody

enableCollision

  • get enableCollision(): boolean
  • set enableCollision(v: boolean): void

Methods

Protected onDestroy

  • onDestroy(): void

Protected onDisable

  • onDisable(): void

Protected onEnable

  • onEnable(): void

Protected onLoad

  • onLoad(): void

Generated using TypeDoc