diff options
| author | HampusM <hampus@hampusmat.com> | 2025-01-17 15:33:58 +0100 | 
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2025-01-17 15:33:58 +0100 | 
| commit | 99dfc7b3c9f5721dae6a016a1171b451e97a4d7c (patch) | |
| tree | 1190ae33f66178a48fc7c926b765a77a16e97b3a /engine/src | |
| parent | 4e564326d0a302e27bf773eee9b1bdb88dfda884 (diff) | |
fix(engine): correct Vec3 direction constants
Diffstat (limited to 'engine/src')
| -rw-r--r-- | engine/src/data_types/vector.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/src/data_types/vector.rs b/engine/src/data_types/vector.rs index 6746b76..8073cdf 100644 --- a/engine/src/data_types/vector.rs +++ b/engine/src/data_types/vector.rs @@ -85,9 +85,9 @@ pub struct Vec3<Value>  impl Vec3<f32>  { -    pub const BACK: Self = Self { x: 0.0, y: 1.0, z: -1.0 }; +    pub const BACK: Self = Self { x: 0.0, y: 0.0, z: -1.0 };      pub const DOWN: Self = Self { x: 0.0, y: -1.0, z: 0.0 }; -    pub const FRONT: Self = Self { x: 0.0, y: 1.0, z: 1.0 }; +    pub const FRONT: Self = Self { x: 0.0, y: 0.0, z: 1.0 };      pub const LEFT: Self = Self { x: -1.0, y: 0.0, z: 0.0 };      pub const RIGHT: Self = Self { x: 1.0, y: 0.0, z: 0.0 };      pub const UP: Self = Self { x: 0.0, y: 1.0, z: 0.0 };  | 
