Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Physics2SharedData

Index

Methods

  • addJoint(joint: b2Joint): number
  • b2Vec2(x: number, y: number): b2Vec2
  • clearBodyJoints(body: b2Body): void
  • getJoint(jointId: string | number): null | b2Joint
  • getJointId(joint: b2Joint): number
  • removeJoint(jointId: string | number): void
  • step(deltaTime: number): void

Constructors

Properties

contactListener: JSContactListener

Contact listener to keep track of current collisions

frameTime: number = 0
gravityX: number
gravityY: number
invScaleX: number
deprecated

Use worldInvScale instead

invScaleY: number
deprecated

Use worldInvScale instead

joints: {} = {}

Start with 1 so the user is safe from default variables value (0)

Type declaration

  • [key: string]: Box2D.b2Joint
scaleX: number
deprecated

Use worldScale instead

scaleY: number
deprecated

Use worldScale instead

staticBody: b2Body
stepped: boolean = false
timeScale: number = 1
timeStep: number
world: b2World
worldInvScale: number
worldScale: number

Generated using TypeDoc