From c1a36da2af5ad09807f64a596a036ce008ca40b7 Mon Sep 17 00:00:00 2001 From: Jan Haller Date: Wed, 1 Feb 2023 19:06:30 +0100 Subject: [PATCH] Fix inverted UP/DOWN for Vector3 and Vector3i --- godot-core/src/builtin/vector3.rs | 8 ++++---- godot-core/src/builtin/vector3i.rs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/godot-core/src/builtin/vector3.rs b/godot-core/src/builtin/vector3.rs index 4d00aac33..30786d755 100644 --- a/godot-core/src/builtin/vector3.rs +++ b/godot-core/src/builtin/vector3.rs @@ -45,11 +45,11 @@ impl Vector3 { /// Unit vector in +X direction. Can be interpreted as right in an untransformed 3D world. pub const RIGHT: Self = Self::new(1.0, 0.0, 0.0); - /// Unit vector in -Y direction. Typically interpreted as down in a 3D world. - pub const UP: Self = Self::new(0.0, -1.0, 0.0); - /// Unit vector in +Y direction. Typically interpreted as up in a 3D world. - pub const DOWN: Self = Self::new(0.0, 1.0, 0.0); + pub const UP: Self = Self::new(0.0, 1.0, 0.0); + + /// Unit vector in -Y direction. Typically interpreted as down in a 3D world. + pub const DOWN: Self = Self::new(0.0, -1.0, 0.0); /// Unit vector in -Z direction. Can be interpreted as "into the screen" in an untransformed 3D world. pub const FORWARD: Self = Self::new(0.0, 0.0, -1.0); diff --git a/godot-core/src/builtin/vector3i.rs b/godot-core/src/builtin/vector3i.rs index f42036412..dd7eaa69b 100644 --- a/godot-core/src/builtin/vector3i.rs +++ b/godot-core/src/builtin/vector3i.rs @@ -44,11 +44,11 @@ impl Vector3i { /// Unit vector in +X direction. pub const RIGHT: Self = Self::new(1, 0, 0); - /// Unit vector in -Y direction. - pub const UP: Self = Self::new(0, -1, 0); - /// Unit vector in +Y direction. - pub const DOWN: Self = Self::new(0, 1, 0); + pub const UP: Self = Self::new(0, 1, 0); + + /// Unit vector in -Y direction. + pub const DOWN: Self = Self::new(0, -1, 0); /// Unit vector in -Z direction. pub const FORWARD: Self = Self::new(0, 0, -1);