Options
All
  • Public
  • Public/Protected
  • All
Menu

A mouse joint is used to make a point on a body track a specified world point. This a soft constraint with a maximum force. This allows the constraint to stretch and without applying huge forces. Note: this joint is not fully documented as it is intended primarily for the testbed. See that for more instructions.

Hierarchy

Index

Constructors

Methods

  • GetDampingRatio(): number
  • GetFrequency(): number
  • GetMaxForce(): 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
  • SetMaxForce(maxForce: number): void
  • SetTarget(target: b2Vec2): void
  • SetUserData(data: any): void

Generated using TypeDoc