Pivot Controls #209
-
I've been trying to get react-three-drei Pivot Controls working for an Interactive AR mesh and can't for the life of me make it work. Here is the CodeSandbox with a sample of what I'm trying to achieve. It works well outside of the XR mode but the touch events don't trigger correctly on touch, is there any trick to get it to work like this or would I have to write my own Control using XR events similar to the one discussed in issue #75? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I'm assuming you've solved the problem... Anyway, it is because of that PivotControl doesn't have useInteraction(). I think you should customize it by adding useInteraction to AxisArrow, PlaneSlider, and AxisRotator in the PivotControl. |
Beta Was this translation helpful? Give feedback.
-
As mentioned in the readme, the roadmaps for this project contain the react-three/controls library, which will provide controls such as pivot controls that are cross platform (XR and non-XR) and thus work using controllers, hands, transient pointers, as well as mouse and touching on a smartphone/tablet. |
Beta Was this translation helpful? Give feedback.
As mentioned in the readme, the roadmaps for this project contain the react-three/controls library, which will provide controls such as pivot controls that are cross platform (XR and non-XR) and thus work using controllers, hands, transient pointers, as well as mouse and touching on a smartphone/tablet.