Babylon.js icon indicating copy to clipboard operation
Babylon.js copied to clipboard

Near Menu cannot be dragged when in immersive mode

Open RaananW opened this issue 3 years ago • 4 comments

See https://forum.babylonjs.com/t/near-menu-dragging-does-not-work-in-oculus-quest-2/27152

https://playground.babylonjs.com/#8RLLVP#1

@CraigFeldspar - do you have an idea what might be the cause here?

RaananW avatar Jan 28 '22 10:01 RaananW

See https://forum.babylonjs.com/t/near-menu-dragging-does-not-work-in-oculus-quest-2/27152

@CraigFeldspar - do you have an idea what might be the cause here?

Last time I tried that, it was on Hololens 2 in Babylon Native, and it was working fine. From what I remember, backplate is the only mesh that receive the events. I don't see why it wouldn't work on oculus :/

CraigFeldspar avatar Feb 12 '22 13:02 CraigFeldspar

I'll test it on both hololens and oculus and see what the state in both.

RaananW avatar Feb 14 '22 16:02 RaananW

It only works with the near interaction plugin and not with the pointer selection. @CraigFeldspar - is there any specific code in the near interaction that enables that?

RaananW avatar Feb 16 '22 11:02 RaananW

Sorry for the delay

In the near menu, as in several 3D controls, there is a this._defaultBehavior that encapsulated a sixDofDragBehavior. This is the part that should handle the pointer drag. See https://github.com/BabylonJS/Babylon.js/blob/83145ae189d61577252935667f71701cf5ebfca3/gui/src/3D/controls/nearMenu.ts#L120

CraigFeldspar avatar Feb 27 '22 18:02 CraigFeldspar

This has been resolved and is working correctly now.

RaananW avatar Jan 18 '24 12:01 RaananW