Represents physics stats for the current frame

Hierarchy

  • PhysicsStatistics

Implemented by

Properties

broadphase: number

Gets the time it took to calculate the broadphase pairs

collisions: number

Gets the number of actual collisions

contacts: Map<string, CollisionContact>

Copy of the current frame contacts (only updated if debug is toggled on)

fastBodies: number

Gets the number of fast moving bodies using raycast continuous collisions in the scene

fastBodyCollisions: number

Gets the number of bodies that had a fast body collision resolution

narrowphase: number

Gets the time it took to calculate the narrowphase

pairs: number

Gets the number of broadphase collision pairs which