Skip to content

Commit

Permalink
Fix inverted UP/DOWN for Vector3 and Vector3i
Browse files Browse the repository at this point in the history
  • Loading branch information
Bromeon committed Feb 1, 2023
1 parent c22d860 commit c1a36da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions godot-core/src/builtin/vector3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
8 changes: 4 additions & 4 deletions godot-core/src/builtin/vector3i.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c1a36da

Please sign in to comment.