CarbonO2 commited on
Commit
5f4306b
·
verified ·
1 Parent(s): fff4904

Upload components/Controls.jsx with huggingface_hub

Browse files
Files changed (1) hide show
  1. components/Controls.jsx +17 -0
components/Controls.jsx ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import React from 'react';
2
+ import { OrbitControls } from '@react-three/drei';
3
+
4
+ const Controls = () => {
5
+ return (
6
+ <OrbitControls
7
+ enablePan={false}
8
+ minDistance={20}
9
+ maxDistance={500}
10
+ rotateSpeed={0.5}
11
+ zoomSpeed={0.8}
12
+ dampingFactor={0.1}
13
+ />
14
+ );
15
+ };
16
+
17
+ export default Controls;