Skip to main content
Version: Phaser v4.0.0

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#L792
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#L804
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#L816
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#L828
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#L840
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#L852
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#L975
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#L987
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#L999
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#L1011
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#L1023
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#L1035
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#L1047
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#L1059
Since: 3.16.0