diff options
Diffstat (limited to 'src')
-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, |