Function worldStep

  • Move the physics world through a step of a given time period.

    Parameters

    • fps: number

      The frames per second the world is running at. The step will be 1/fps in length.

    • world: World

      The world to step

    • Optional dynamics: DynamicRigidBody[]

    Returns Collision[]