Spaces:
Build error
Build error
Upload components/Controls.jsx with huggingface_hub
Browse files- 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;
|