feat: implement StairOpeningSystem to handle automated stair opening updates and adjust camera distance constraints

This commit is contained in:
sudhir
2026-05-20 00:53:10 +00:00
committed by open-pascal
parent 8b73d7986b
commit c31c08fd90
5 changed files with 68 additions and 25 deletions
@@ -7,7 +7,7 @@ import {
sceneRegistry,
useScene,
} from '@pascal-app/core'
import { useViewer, ZONE_LAYER } from '@pascal-app/viewer'
import { useViewer, WalkthroughControls, ZONE_LAYER } from '@pascal-app/viewer'
import { CameraControls, CameraControlsImpl } from '@react-three/drei'
import { useThree } from '@react-three/fiber'
import { useCallback, useEffect, useMemo, useRef } from 'react'
@@ -440,9 +440,9 @@ export const CustomCameraControls = () => {
return (
<CameraControls
makeDefault
maxDistance={250}
maxDistance={100}
maxPolarAngle={maxPolarAngle}
minDistance={2}
minDistance={10}
minPolarAngle={0}
mouseButtons={mouseButtons}
onRest={onRest}