Options
All
  • Public
  • Public/Protected
  • All
Menu

A distance joint constrains two points on two bodies to remain at a fixed distance from each other. You can view this as a massless, rigid rod.

Hierarchy

Index

Constructors

Methods

  • GetDampingRatio(): number
  • GetFrequency(): number
  • GetLength(): number
  • GetReactionForce(inv_dt: number): b2Vec2
  • GetReactionTorque(inv_dt: number): number
  • GetType(): number
  • GetUserData(): any
  • IsActive(): boolean
  • SetDampingRatio(ratio: number): void
  • SetFrequency(hz: number): void
  • SetLength(length: number): void
  • Sets the length of distance between the two bodies.

    Parameters

    • length: number

      New length.

    Returns void

  • SetUserData(data: any): void

Generated using TypeDoc