Options
All
  • Public
  • Public/Protected
  • All
Menu

Class b2PhysicsWorld

Hierarchy

  • b2PhysicsWorld

Implements

Index

Constructors

constructor

Properties

Protected _aabbQueryCallback

_aabbQueryCallback: PhysicsAABBQueryCallback

Protected _animatedBodies

_animatedBodies: b2RigidBody2D[] = []

_b2DebugDrawer

_b2DebugDrawer: b2.Draw | null = null

Protected _bodies

_bodies: b2RigidBody2D[] = []

Protected _contactListener

_contactListener: PhysicsContactListener

_debugDrawFlags

_debugDrawFlags: number = 0

_debugGraphics

_debugGraphics: Graphics | null = null

Protected _raycastQueryCallback

_raycastQueryCallback: PhysicsRayCastCallback

Protected _world

_world: b2.World

Accessors

debugDrawFlags

  • get debugDrawFlags(): number
  • set debugDrawFlags(v: number): void

impl

Methods

checkDebugDrawValid

  • _checkDebugDrawValid(): void

onBeginContact

onEndContact

onPostSolve

onPreSolve

addBody

drawDebug

  • drawDebug(): void

raycast

registerContactFixture

  • registerContactFixture(fixture: b2.Fixture): void

removeBody

setAllowSleep

  • setAllowSleep(v: boolean): void

setGravity

step

  • step(deltaTime: number, velocityIterations?: number, positionIterations?: number): void

syncPhysicsToScene

  • syncPhysicsToScene(): void

syncSceneToPhysics

  • syncSceneToPhysics(): void

testAABB

testPoint

unregisterContactFixture

  • unregisterContactFixture(fixture: b2.Fixture): void

Generated using TypeDoc