diff options
author | HampusM <hampus@hampusmat.com> | 2025-05-24 21:24:26 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-05-24 21:24:26 +0200 |
commit | f682f8c15c67c8fe391d80054d7ec0533a8c508c (patch) | |
tree | 48a0f82f7793b83e8be5e738f0f3fcf657f0b9d1 /src/main.rs | |
parent | 2af2ff471e969bafba25d242871ce16034a2449d (diff) |
fix: use new name of Position
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index 438b2bf..bc9ecea 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,7 +23,7 @@ use engine::mesh::cube::{ }; use engine::renderer::opengl::Extension as OpenglRendererExtension; use engine::texture::Texture; -use engine::transform::Position; +use engine::transform::WorldPosition; use engine::vector::Vec3; use engine::window::{ Builder as WindowBuilder, @@ -107,7 +107,7 @@ fn main() -> Result<(), Box<dyn Error>> engine.spawn(( teapot_obj.to_mesh()?, teapot_mat_builder.build(), - Position::from(Vec3 { x: 1.6, y: 0.0, z: 0.0 }), + WorldPosition::from(Vec3 { x: 1.6, y: 0.0, z: 0.0 }), )); engine.spawn(( @@ -119,7 +119,7 @@ fn main() -> Result<(), Box<dyn Error>> ..Default::default() }) .build(), - Position::from(Vec3 { x: -6.0, y: 3.0, z: 3.0 }), + WorldPosition::from(Vec3 { x: -6.0, y: 3.0, z: 3.0 }), cube_mesh_create( CubeMeshCreationSpec::builder() .width(2.0) @@ -134,7 +134,7 @@ fn main() -> Result<(), Box<dyn Error>> engine.spawn(( Camera::default(), - Position { + WorldPosition { position: Vec3 { x: 0.0, y: 0.0, z: 3.0 }, }, ActiveCamera, |