diff --git a/v3/src/math/Vector2.js b/v3/src/math/Vector2.js index 42ea57175..2976b563c 100644 --- a/v3/src/math/Vector2.js +++ b/v3/src/math/Vector2.js @@ -16,6 +16,8 @@ var Vector2 = new Class({ } else { + if (y === undefined) { y = x; } + this.x = x || 0; this.y = y || 0; }