Babylon.js
Babylon.js copied to clipboard
Near Menu cannot be dragged when in immersive mode
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?
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 :/
I'll test it on both hololens and oculus and see what the state in both.
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?
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
This has been resolved and is working correctly now.