expo-three
expo-three copied to clipboard
Whether to use the DragControls feature
If DragControls are available, I don't know what value to put in the third parameter of Drag Controls.
const dragControls = new THREE.DragControls(meshes, camera, renderer.domElement)
I'd appreciate your help.
@smooth97 Indeed, the domElement
is not available in React Native.
I had to use OrbitControls
and I basically took the code from the ThreeJS source code and adjusted it so it works with react-native-gesture-handler.
So I guess you will have to do the same if you want to use drag controls.