Skip to content

Commit

Permalink
feat: improve orthoperspective camera tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed May 16, 2024
1 parent 4c16880 commit 8155778
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,20 @@ const panel = BUI.Component.create<BUI.PanelSection>(() => {
<bim-option checked label="Perspective"></bim-option>
<bim-option label="Orthographic"></bim-option>
</bim-dropdown>
<bim-checkbox
label="Allow user input" checked
@change="${({ target }: { target: BUI.Checkbox }) => {
world.camera.setUserInput(target.checked);
}}">
</bim-checkbox>
<bim-button
label="Fit cube"
@click="${() => {
world.camera.fit([cube]);
}}">
</bim-button>
</bim-panel-section>
</bim-panel>
Expand Down

0 comments on commit 8155778

Please sign in to comment.