Phaser API Documentation

  Version: 
translate(x, [y])

Description:

Translates the vertices of this Face by the given amounts.

The actual vertex positions are adjusted, not their transformed position.

Therefore, this updates the vertex data directly.

Parameters:

name type arguments description
x number

The amount to horizontally translate by.

y number <optional>

The amount to vertically translate by.

Returns:
Description:

This Face instance.

Since: 3.50.0
Source: src/geom/mesh/Face.js (Line 406)