Tranlates the points of the given Polygon.
name | type | description |
---|---|---|
polygon | Phaser.Geom.Polygon |
The Polygon to modify. |
x | number |
The amount to horizontally translate the points by. |
y | number |
The amount to vertically translate the points by. |
The modified Polygon.