// Camera Setup class CameraManager { constructor() { this.camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 ); this.camera.position.set(5, 5, 5); this.camera.lookAt(0, 0, 0); this.setupResizeHandler(); } setupResizeHandler() { window.addEventListener('resize', () => { this.camera.aspect = window.innerWidth / window.innerHeight; this.camera.updateProjectionMatrix(); }); } getCamera() { return this.camera; } }