Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions packages/obc/src/core/ViewCube/example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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);
});

Expand Down