Function mount_collision_polygon

  • Creates a collision polygon.

    Parameters

    • width: number

      Width of the body

    • shift: number

      Shift value

    • bevel: number = 0

      Body's bevel value

    Returns number[][]

    Returns a list of coodinates of the polygon.