Phaser API Documentation



Translates the view position of this Mesh on the z axis by the given amount.

As the default panZ value is 0, vertices with z=0 (the default) need special care or else they will not display as they are behind the camera. Consider using mesh.panZ(mesh.height / (2 * Math.tan(Math.PI / 16))), which will interpret vertex geometry 1:1 with pixel geometry (or see setOrtho).


name type description
v number

The amount to pan by.

Since: 3.50.0