diff --git a/src/core/Vector2.cpp b/src/core/Vector2.cpp index eeeeb856..f3d617a4 100644 --- a/src/core/Vector2.cpp +++ b/src/core/Vector2.cpp @@ -6,9 +6,9 @@ namespace godot { -const Vector2 Vector2::ZERO; -const Vector2 Vector2::ONE; -const Vector2 Vector2::INF; +const Vector2 Vector2::ZERO = Vector2(); +const Vector2 Vector2::ONE = Vector2(1, 1); +const Vector2 Vector2::INF = Vector2(INFINITY, INFINITY); const Vector2 Vector2::LEFT = Vector2(-1, 0); const Vector2 Vector2::RIGHT = Vector2(1, 0); diff --git a/src/core/Vector3.cpp b/src/core/Vector3.cpp index f4db4627..1088ea6e 100644 --- a/src/core/Vector3.cpp +++ b/src/core/Vector3.cpp @@ -9,7 +9,7 @@ namespace godot { const Vector3 Vector3::ZERO = Vector3(); -const Vector3 Vector3::ONE = Vector3(); +const Vector3 Vector3::ONE = Vector3(1, 1, 1); const Vector3 Vector3::INF = Vector3(INFINITY, INFINITY, INFINITY); const Vector3 Vector3::LEFT = Vector3(-1, 0, 0);