Enable rotation around z-axis

This commit is contained in:
Fuhrmann 2025-03-07 12:29:58 +01:00
parent 9ea7b3290d
commit 419b58fe56
2 changed files with 3 additions and 2 deletions

View file

@ -12,9 +12,9 @@ export class SceneView {
private _dragControls: DragControls;
private _model: Group;
constructor(scene: Scene, model: Group, dragControls: DragControls) {
constructor(scene: Scene, model: Group, controls: DragControls) {
this._scene = scene;
this._dragControls = dragControls;
this._dragControls = controls;
this._model = model;
}

View file

@ -65,6 +65,7 @@ export function buildScene(container: HTMLElement, extent: Extent) {
);
camera.position.set(center.x, center.y - 125000, extent.zmax + 100000);
camera.up.set(0, 0, 1);
camera.lookAt(center);
// Initialize the renderer