Phaser API Documentation

  Version: 

Member of: Phaser.Math.Matrix4

setWorldMatrix(rotation, position, scale, [viewMatrix], [projectionMatrix])

Description:

Generate a world matrix from the given rotation, position, scale, view matrix and projection matrix.

Parameters:

name type arguments description
rotation Phaser.Math.Vector3

The rotation of the world matrix.

position Phaser.Math.Vector3

The position of the world matrix.

scale Phaser.Math.Vector3

The scale of the world matrix.

viewMatrix Phaser.Math.Matrix4 <optional>

The view matrix.

projectionMatrix Phaser.Math.Matrix4 <optional>

The projection matrix.

Returns:
Description:

This Matrix4.

Since: 3.0.0
Source: src/math/Matrix4.js (Line 1560)