Skip to content

Commit c1a36da

Browse files
committed
Fix inverted UP/DOWN for Vector3 and Vector3i
1 parent c22d860 commit c1a36da

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

godot-core/src/builtin/vector3.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ impl Vector3 {
4545
/// Unit vector in +X direction. Can be interpreted as right in an untransformed 3D world.
4646
pub const RIGHT: Self = Self::new(1.0, 0.0, 0.0);
4747

48-
/// Unit vector in -Y direction. Typically interpreted as down in a 3D world.
49-
pub const UP: Self = Self::new(0.0, -1.0, 0.0);
50-
5148
/// Unit vector in +Y direction. Typically interpreted as up in a 3D world.
52-
pub const DOWN: Self = Self::new(0.0, 1.0, 0.0);
49+
pub const UP: Self = Self::new(0.0, 1.0, 0.0);
50+
51+
/// Unit vector in -Y direction. Typically interpreted as down in a 3D world.
52+
pub const DOWN: Self = Self::new(0.0, -1.0, 0.0);
5353

5454
/// Unit vector in -Z direction. Can be interpreted as "into the screen" in an untransformed 3D world.
5555
pub const FORWARD: Self = Self::new(0.0, 0.0, -1.0);

godot-core/src/builtin/vector3i.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ impl Vector3i {
4444
/// Unit vector in +X direction.
4545
pub const RIGHT: Self = Self::new(1, 0, 0);
4646

47-
/// Unit vector in -Y direction.
48-
pub const UP: Self = Self::new(0, -1, 0);
49-
5047
/// Unit vector in +Y direction.
51-
pub const DOWN: Self = Self::new(0, 1, 0);
48+
pub const UP: Self = Self::new(0, 1, 0);
49+
50+
/// Unit vector in -Y direction.
51+
pub const DOWN: Self = Self::new(0, -1, 0);
5252

5353
/// Unit vector in -Z direction.
5454
pub const FORWARD: Self = Self::new(0, 0, -1);

0 commit comments

Comments
 (0)