diff --git a/packages/obc/src/core/ViewCube/example.ts b/packages/obc/src/core/ViewCube/example.ts index 347a439..0a7f2c7 100644 --- a/packages/obc/src/core/ViewCube/example.ts +++ b/packages/obc/src/core/ViewCube/example.ts @@ -66,10 +66,6 @@ const viewCube = document.createElement("bim-view-cube"); viewCube.camera = world.camera.three; viewport.append(viewCube); -/* MD - This attaches the ViewCube to your viewport and links it to your camera's Three.js instance. -*/ - /* MD ### 🔄 Keeping the ViewCube in Sync @@ -86,7 +82,7 @@ world.camera.controls.addEventListener("update", () => You can let users click on the ViewCube to change the camera's orientation. For example, set the camera to a specific view when the left face is clicked: */ -viewCube.addEventListener("back", () => { +viewCube.addEventListener("leftclick", () => { world.camera.controls.setLookAt(-10, 10, 0, 1, 10, 0, true); });