Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Sleeping

The 'Sleeping is a class for manage the sleeping of bodies.

Hierarchy

  • Sleeping

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

engine

engine: Engine

type

type: number

Methods

afterCollisions

  • afterCollisions(): void
  • Updates the sleep state of bodies depending on their collisions.

    Returns void

afterSolve

  • afterSolve(delta: number): void
  • Updates the sleep state of bodies depending on their motion.

    Parameters

    • delta: number

    Returns void

setType

Generated using TypeDoc