diff options
| author | HampusM <hampus@hampusmat.com> | 2026-08-17 15:52:28 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-08-17 15:52:28 +0200 |
| commit | 277fd069824814ff00567468d49334c10e8cf2dc (patch) | |
| tree | 932ca05c04c37582347c9f5a5bbcd36680dbe6b7 /src | |
| parent | ccfbcb490dd47cc814a64e8be00c148e2e2206a3 (diff) | |
Diffstat (limited to 'src')
| -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 }), ), ); |
