Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HingeConstraint

Hierarchy

Index

Constructors

constructor

Properties

Readonly TYPE

Gets the type of this joint.

Private Readonly _axis

_axis: Vec3 = new Vec3()

Protected _connectedBody

_connectedBody: RigidBody | null = null

Protected _constraint

_constraint: IBaseConstraint | null = null

Protected _enableCollision

_enableCollision: boolean = true

Private Readonly _pivotA

_pivotA: Vec3 = new Vec3()

Private Readonly _pivotB

_pivotB: Vec3 = new Vec3()

Static Readonly Type

Type: EnumAlias<typeof EConstraintType> = EConstraintType

Enumeration of joint types.

Accessors

attachedBody

axis

  • get axis(): Vec3
  • set axis(v: Vec3): void

connectedBody

constraint

  • get constraint(): IHingeConstraint

enableCollision

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

pivotA

  • get pivotA(): Vec3
  • set pivotA(v: Vec3): void

pivotB

  • get pivotB(): Vec3
  • set pivotB(v: Vec3): void

Methods

Protected onDestroy

  • onDestroy(): void

Protected onDisable

  • onDisable(): void

Protected onEnable

  • onEnable(): void

Protected onLoad

  • onLoad(): void

Generated using TypeDoc