Phaser API Documentation

  Version: 

Member of: Phaser.Math.Matrix4

fromRotationXYTranslation(rotation, position, translateFirst)

Description:

Takes the rotation and position vectors and builds this Matrix4 from them.

Parameters:

name type description
rotation Phaser.Math.Vector3

The rotation vector.

position Phaser.Math.Vector3

The position vector.

translateFirst boolean

Should the operation translate then rotate (true), or rotate then translate? (false)

Returns:
Description:

This Matrix4.

Since: 3.50.0
Source: src/math/Matrix4.js (Line 1670)