Phaser API Documentation

  Version: 
modelPosition: Phaser.Math.Vector3

Description:

A Vector3 containing the 3D position of the vertices in this Mesh.

Modifying the components of this property will allow you to reposition where the vertices are rendered within the Mesh. This happens in the preUpdate phase, where each vertex is transformed using the view and projection matrices.

Changing this property will impact all vertices being rendered by this Mesh.

You can also adjust the 'view' by using the pan methods.

Since: 3.50.0