From 2c673bef6307cabfadf5eb5451f6a04e4ff16b47 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Wed, 9 Sep 2020 15:22:57 +0200 Subject: [PATCH] building are now for faces unioned with tow windows --- src/App.vue | 3 ++- src/components/objects/Project.vue | 43 +++++++++++++++++++++++------- 2 files changed, 36 insertions(+), 10 deletions(-) diff --git a/src/App.vue b/src/App.vue index 972af59..8c8f3d5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -326,7 +326,6 @@ export default { toPos = { ...object.position } if (object.name === 'Content') { - // toPos.z += 1 switch (vnode.face) { case 'left': toPos.x += 4 @@ -345,6 +344,8 @@ export default { // new TWEEN.Tween(this.controls.cam_target) // .to(object.position, 2000) // .start() + } else if (object.name === 'Project') { + toPos.z *= 0.5 } // toPos.y = 5 new TWEEN.Tween(camPos) diff --git a/src/components/objects/Project.vue b/src/components/objects/Project.vue index fc64bfb..a574be6 100644 --- a/src/components/objects/Project.vue +++ b/src/components/objects/Project.vue @@ -1,6 +1,6 @@