Browse Source

Add first second floor room

master
Peter Hajas 3 years ago
parent
commit
81d9dd68ba
  1. 6
      data.json
  2. 2
      script.js

6
data.json

@ -65,6 +65,12 @@
"x" : 12.2938, "y" :6.3119,
"w" : 2.1082, "h" : 1.4732, "d" : 3.048,
"color" : "lime"
},
{
"name" : "Loft",
"x" : 0, "y" : 5.2832, "z" : 3.048,
"w" : 4.9774, "h" : 3.7338, "d" : 3.048,
"color" : "navy"
}
]
}

2
script.js

@ -38,7 +38,7 @@ function setPosition(mesh, x, y, z, w, h, d) {
let meshX = x + w/2
let meshY = y + h/2
let meshZ = z - d/2
let meshZ = -z - d/2
mesh.position.x = meshX
mesh.position.y = meshY
mesh.position.z = meshZ

Loading…
Cancel
Save