Phaser API Documentation

  Version: 
rotationTo(a, b)

Description:

Rotates this Quaternion based on the two given vectors.

Parameters:

name type description
a Phaser.Math.Vector3

The transform rotation vector.

b Phaser.Math.Vector3

The target rotation vector.

Returns:
Description:

This Quaternion.

Examples:
Since: 3.0.0
Source: src/math/Quaternion.js (Line 420)