mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: min/max zoom distances
This commit is contained in:
1 parent
b03589f6f0
commit
e094267223
1 file changed
+2
@@ -149,6 +149,8 @@ export function Controls() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<OrbitControls
|
<OrbitControls
|
||||||
|
maxDistance={20}
|
||||||
|
minDistance={5}
|
||||||
ref={orbitControls}
|
ref={orbitControls}
|
||||||
enabled={useTankopediaPersistent.getState().model.visual.controlsEnabled}
|
enabled={useTankopediaPersistent.getState().model.visual.controlsEnabled}
|
||||||
rotateSpeed={0.25}
|
rotateSpeed={0.25}
|
||||||
|
|||||||
Reference in new issue
Block a user