phaser - v3.90.0
    Preparing search index...

    The Matter.Sleeping module contains methods to manage the sleeping state of bodies.

    Sleeping

    Index

    Constructors

    Methods

    • Given a set of colliding pairs, wakes the sleeping bodies involved.

      Parameters

      Returns void

      afterCollisions

    • Set a body as sleeping or awake.

      Parameters

      Returns void

      set

    • Puts bodies to sleep or wakes them up depending on their motion.

      Parameters

      Returns void

      update