API

Function setPhysicsVelocityLimits

  • Clamps the maximum linear and angular speeds of bodies in the world.

    Parameters

    • world: PhysicsWorld

      The physics world.

    • maxLinear: number

      Maximum linear speed.

    • maxAngular: number

      Maximum angular speed.

    Returns void