Phaser API Documentation

  Version: 
set([x], [y], [z], [w], [update])

Description:

Set the components of this Quaternion and optionally call the onChangeCallback.

Parameters:

name type arguments Default description
x number | object <optional> 0

The x component, or an object containing x, y, z, and w components.

y number <optional> 0

The y component.

z number <optional> 0

The z component.

w number <optional> 0

The w component.

update boolean <optional> true

Call the onChangeCallback?

Returns:
Description:

This Quaternion.

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