Disabling Global Control for Object Movement in ThreeJS XR Mode

"I’ve prepared an example to move objects in ThreeJS XR mode. In this example, I want to disable global control while moving products. I want the product to be rotated only in the coordinate system in the left-right-forward-backward-up-down directions. I can make changes when I leave with Quaternion, but in the product’s carrying phase, it takes whatever is in the controller object. Is it possible to turn off global control in the controller object?

Or if anyone has a better idea, I’m listening. My goal is to place products in a room. There will also be wall and ceiling products."

https://bemycarsi.online/moon/xr.html

Hi.
You can disable by setting OrbitControls properties.
and I can make moving items.
Kind regards.

1 Like

No, what you mentioned only disables moving outside of XR. When we connect to XR, we can hold and move a product. During this movement, it is necessary to be able to place items in a room without moving them so that I can make architectural layouts for normal users.

You can disable OrbitControls property only when you click item.
Before I have a lot of experiences about mouse drag
My Discord : blueocean7335

1 Like