Phaser API Documentation

  Version: 

Member of: Phaser.Math.Matrix4

lookAt(eye, center, up)

Description:

Generate a look-at matrix with the given eye position, focal point, and up axis.

Parameters:

name type description
eye Phaser.Math.Vector3

Position of the viewer

center Phaser.Math.Vector3

Point the viewer is looking at

up Phaser.Math.Vector3

vec3 pointing up.

Returns:
Description:

This Matrix4.

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