displaying content images in 3d env

This commit is contained in:
2020-09-01 13:46:57 +02:00
parent 94b9a5452f
commit aa59abfcc0
3 changed files with 112 additions and 17 deletions
+4 -4
View File
@@ -297,16 +297,16 @@ export default {
// toPos.z += 1
switch (vnode.face) {
case 'left':
toPos.x += 2
toPos.x += 4
break
case 'back':
toPos.z += 2
toPos.z += 4
break
case 'right':
toPos.x -= 2
toPos.x -= 4
break
case 'front':
toPos.z -= 2
toPos.z -= 4
break
}
// TODO: we need to update lon and lat accordingly when chaging camera orientation