Phaser API Documentation

  Version: 
updateQuad(offset, x1, y1, x2, y2)

Description:

Internally updates the position coordinates across all vertices of the given quad offset.

You should not typically need to call this method directly, but it is left public should an extended class require it.

Parameters:

name type description
offset number

The offset in the vertices array of the quad to update.

x1 number

The top-left quad coordinate.

y1 number

The top-left quad coordinate.

x2 number

The bottom-right quad coordinate.

y2 number

The bottom-right quad coordinate.

Since: 3.60.0