Options
All
  • Public
  • Public/Protected
  • All
Menu

The base joint class. Joints are used to constraint two bodies together in various fashions. Some joints also feature limits and motors.

Hierarchy

Index

Constructors

Methods

  • GetReactionForce(inv_dt: number): b2Vec2
  • GetReactionTorque(inv_dt: number): number
  • Get the reaction torque on body2 in N.

    Parameters

    • inv_dt: number

    Returns number

    Reaction torque (N).

  • GetType(): number
  • GetUserData(): any
  • IsActive(): boolean
  • Short-cut function to determine if either body is inactive.

    Returns boolean

    True if active, otherwise false.

  • SetUserData(data: any): void

Generated using TypeDoc