Function rotateBody

  • Rotate a body around its center

    Parameters

    • body: Body

      The body to rotate

    • angle: number

      The angle in radian to rotate the body by

    Returns void