diff options
| -rw-r--r-- | src/main.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs index 114228e..09c3126 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,7 +39,7 @@ use engine::rendering::{ use engine::scene::{Active as ActiveScene, Scene}; use engine::sky_box::SkyBox; use engine::texture::CubeMapFace; -use engine::transform::WorldPosition; +use engine::transform::Transform; use engine::ui::dear_imgui::{ Context as DearImguiContext, Extension as DearImguiExtension, @@ -160,9 +160,7 @@ fn init(mut assets: Single<Assets>, mut actions: Actions) -> Result<(), EngineEr "Main camera", ( Camera::default(), - WorldPosition { - position: Vec3 { x: 0.0, y: 0.0, z: 3.0 }, - }, + Transform::default().position(Vec3 { x: 0.0, y: 0.0, z: 3.0 }), ActiveCamera, FlyCamera::default(), pair!(ChildOf, { scene_ent_id }), @@ -180,7 +178,7 @@ fn init(mut assets: Single<Assets>, mut actions: Actions) -> Result<(), EngineEr ..Default::default() }) .build(), - WorldPosition::from(Vec3 { x: -6.0, y: 3.0, z: 3.0 }), + Transform::default().position(Vec3 { x: -6.0, y: 3.0, z: 3.0 }), Model::new(assets.store_with_name_with("light_cube", |assets| { ModelSpec::builder() .mesh(assets.store_with_name( @@ -208,7 +206,7 @@ fn init(mut assets: Single<Assets>, mut actions: Actions) -> Result<(), EngineEr Model::new( assets.load::<ModelSpec>(Path::new(RESOURCE_DIR).join("teapot.obj")), ), - WorldPosition::from(Vec3 { x: 1.6, y: 0.0, z: 0.0 }), + Transform::default().position(Vec3 { x: 1.6, y: 0.0, z: 0.0 }), pair!(ChildOf, { scene_ent_id }), ), ); |
