Skip to main content
Version: Phaser v4.0.0-rc.6

Math

ZERO

ZERO: Phaser.Math.Vector2

Description:

A static zero Vector2 for use by reference.

This constant is meant for comparison operations and should not be modified directly.

Source: src/math/Vector2.js#L787
Since: 3.1.0

RIGHT: Phaser.Math.Vector2

Description:

A static right Vector2 for use by reference.

This constant is meant for comparison operations and should not be modified directly.

Source: src/math/Vector2.js#L799
Since: 3.16.0

LEFT

LEFT: Phaser.Math.Vector2

Description:

A static left Vector2 for use by reference.

This constant is meant for comparison operations and should not be modified directly.

Source: src/math/Vector2.js#L811
Since: 3.16.0

UP

UP: Phaser.Math.Vector2

Description:

A static up Vector2 for use by reference.

This constant is meant for comparison operations and should not be modified directly.

Source: src/math/Vector2.js#L823
Since: 3.16.0

DOWN

DOWN: Phaser.Math.Vector2

Description:

A static down Vector2 for use by reference.

This constant is meant for comparison operations and should not be modified directly.

Source: src/math/Vector2.js#L835
Since: 3.16.0

ONE

ONE: Phaser.Math.Vector2

Description:

A static one Vector2 for use by reference.

This constant is meant for comparison operations and should not be modified directly.

Source: src/math/Vector2.js#L847
Since: 3.16.0

ZERO

ZERO: Phaser.Math.Vector3

Description:

A static zero Vector3 for use by reference.

This constant is meant for comparison operations and should not be modified directly.

Source: src/math/Vector3.js#L964
Since: 3.16.0

RIGHT

RIGHT: Phaser.Math.Vector3

Description:

A static right Vector3 for use by reference.

This constant is meant for comparison operations and should not be modified directly.

Source: src/math/Vector3.js#L976
Since: 3.16.0

LEFT

LEFT: Phaser.Math.Vector3

Description:

A static left Vector3 for use by reference.

This constant is meant for comparison operations and should not be modified directly.

Source: src/math/Vector3.js#L988
Since: 3.16.0

UP

UP: Phaser.Math.Vector3

Description:

A static up Vector3 for use by reference.

This constant is meant for comparison operations and should not be modified directly.

Source: src/math/Vector3.js#L1000
Since: 3.16.0

DOWN

DOWN: Phaser.Math.Vector3

Description:

A static down Vector3 for use by reference.

This constant is meant for comparison operations and should not be modified directly.

Source: src/math/Vector3.js#L1012
Since: 3.16.0

FORWARD

FORWARD: Phaser.Math.Vector3

Description:

A static forward Vector3 for use by reference.

This constant is meant for comparison operations and should not be modified directly.

Source: src/math/Vector3.js#L1024
Since: 3.16.0

BACK

BACK: Phaser.Math.Vector3

Description:

A static back Vector3 for use by reference.

This constant is meant for comparison operations and should not be modified directly.

Source: src/math/Vector3.js#L1036
Since: 3.16.0

ONE

ONE: Phaser.Math.Vector3

Description:

A static one Vector3 for use by reference.

This constant is meant for comparison operations and should not be modified directly.

Source: src/math/Vector3.js#L1048
Since: 3.16.0