Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Constraint

Base class for joint constraints, which depends on rigid body components.

Hierarchy

Index

Constructors

constructor

Properties

Readonly TYPE

Gets the type of this joint.

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

Enumeration of joint types.

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