From 486648ec38aa5fe6ff31179d8fb6aaa2b02ad5f4 Mon Sep 17 00:00:00 2001 From: Peter Hajas Date: Sat, 7 May 2022 15:28:15 -0600 Subject: [PATCH] Add stairway --- data.json | 9 +++++++++ script.js | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/data.json b/data.json index c600a7c..16e84e0 100644 --- a/data.json +++ b/data.json @@ -26,6 +26,15 @@ "h" : 4.6736, "d" : 3.048, "color" : "green" + }, + { + "name" : "Stairway", + "x" : 0, + "y" : 7.7216, + "w" : 2.9972, + "h" : 3.149, + "d" : 6.096, + "color" : "blue" } ] } diff --git a/script.js b/script.js index f0a9411..bbb492a 100644 --- a/script.js +++ b/script.js @@ -12,7 +12,7 @@ light.position.z = 100 scene.add(light) // back the camera up -camera.position.z = 15; +camera.position.z = 25 // transform the home to be a reasonable orientation home.rotation.x = Math.PI * 2/3