This PR adds X/Y horizontal/vertical spatial scrolling support to the EditorXR "SpatialMenu".
This implementation handles +- X/Y horiz/vert axis spatial scrolling, relative to the vector defined by the location of the rayOrigin and the HMD, upon display of the SpatialMenu.
This functionality allows a user the ability to move their hand left/right to cycle though top-level menu items (after initially opening the SpatialMenu). Trigger can then be used to select a highlighted element. Then, after selecting a highlighted top-level menu element (actions/workspaces/tools), when in a sub-menu, the user can move their wrist up and down (with their elbow staying in-place), in order to scroll vertically through the sub-menu elements. Again trigger will allow for element selection. At any point the user can use a ray to disable spatial-select mode, or use the cyclical rotation input mode to select menu elements. Grip cancels, and returns to previous menu level, as usual.
Additional PR description details will be added later
This PR adds X/Y horizontal/vertical spatial scrolling support to the EditorXR "SpatialMenu".
This implementation handles +- X/Y horiz/vert axis spatial scrolling, relative to the vector defined by the location of the rayOrigin and the HMD, upon display of the SpatialMenu.
This functionality allows a user the ability to move their hand left/right to cycle though top-level menu items (after initially opening the SpatialMenu). Trigger can then be used to select a highlighted element. Then, after selecting a highlighted top-level menu element (actions/workspaces/tools), when in a sub-menu, the user can move their wrist up and down (with their elbow staying in-place), in order to scroll vertically through the sub-menu elements. Again trigger will allow for element selection. At any point the user can use a ray to disable spatial-select mode, or use the cyclical rotation input mode to select menu elements. Grip cancels, and returns to previous menu level, as usual.
Additional PR description details will be added later