expo-three icon indicating copy to clipboard operation
expo-three copied to clipboard

Whether to use the DragControls feature

Open smooth97 opened this issue 3 years ago • 1 comments

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 avatar Mar 22 '21 06:03 smooth97

@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.

fabien-lg avatar Jun 19 '21 09:06 fabien-lg