Function atRest

  • Check if the physics system is at rest.

    Parameters

    • world: World

      The world to check

    • forSeconds: number = 1

      The number of seconds a body must be at rest to be considered stopped

    • Optional dynamics: DynamicRigidBody[]

    Returns boolean

    True if all bodies are at rest