Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Physics2SharedData

Index

Methods

  • addJoint(joint: b2Joint): number
  • clearBodyJoints(body: b2Body): void
  • getJoint(jointId: string | number): null | b2Joint
  • getJointId(joint: b2Joint): number
  • removeJoint(jointId: string | number): void
  • resetStartedAndEndedCollisions(): void
  • step(deltaTime: number): void
  • updateBodiesFromObjects(): void

Constructors

Properties

contactListener: JSContactListener

Contact listener to keep track of current collisions

frameTime: number = 0
gravityX: number
gravityY: number
invScaleX: number
invScaleY: number
joints: {} = {}

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

Type declaration

  • [key: string]: Box2D.b2Joint
scaleX: number
scaleY: number
staticBody: b2Body
stepped: boolean = false
timeScale: number = 1
timeStep: number
world: b2World

Generated using TypeDoc