MixedRealityToolkit / MixedRealityToolkit-Unity

This repository holds the third generation of the Mixed Reality Toolkit for Unity. The latest version of the MRTK can be found here.
BSD 3-Clause "New" or "Revised" License
374 stars 96 forks source link

[XRI3] Split out "airtap" from "grab" as distinct IXRInputButtonReaders #860

Open keveleigh opened 1 month ago

keveleigh commented 1 month ago

Describe the problem

In an XRController world, we essentially had a 1-to-1 mapping of a set of select action mappings to each controller, which then bubbled down to every interactor of a specific handedness. This led to us needing to use the same set of mappings for both near and far interaction, which was fine but nonoptimal.

Describe the solution you'd like

With the move to assignable IXRInputButtonReaders in XRI3, we should be able to separate out the actions for far interaction vs near interaction. Far rays typically default to more of an "airtap" while near grab interactors should listen for "grasp".

AMollis commented 1 month ago

Thanks @keveleigh .... I can work on this

AMollis commented 1 month ago

@MaxPalmer-UH I think this might fix the problems you are seeing on Ultraleap

MaxPalmer-UH commented 1 month ago

Thanks, will check this out tomorrow.

Sent from Outlook for iOShttps://aka.ms/o0ukef


From: Adam Mollis @.> Sent: Wednesday, July 17, 2024 7:43:33 PM To: MixedRealityToolkit/MixedRealityToolkit-Unity @.> Cc: Max Palmer @.>; Mention @.> Subject: Re: [MixedRealityToolkit/MixedRealityToolkit-Unity] [XRI3] Split out "airtap" from "grab" as distinct IXRInputButtonReaders (Issue #860)

CAUTION EXTERNAL EMAIL: Message originated from outside of Ultraleap. Action with care.

@MaxPalmer-UHhttps://url.uk.m.mimecastprotect.com/s/T1VrC3w2OSw25yFqaitU?domain=github.com I think this might fix the problems you are seeing on Ultraleap

— Reply to this email directly, view it on GitHubhttps://url.uk.m.mimecastprotect.com/s/CyLDC2WvOHv8NBhnybhN?domain=github.com, or unsubscribehttps://url.uk.m.mimecastprotect.com/s/Y4IWC4LR4hylpDsB9AUU?domain=github.com. You are receiving this because you were mentioned.Message ID: @.***>

This email is sent on behalf of Ultraleap Limited or Ultraleap, Inc. as the context shall demand. Ultraleap Limited is a limited company registered in England with company number 08781720 with its registered address at The West Wing, Glass Wharf, Bristol, England BS2 0EL. Ultraleap, Inc. is registered in Delaware with registered number 6010492. The ultimate parent company of both entities is Ultraleap Holdings Limited, a limited company registered in England with company number 10051029 and registered address at The West Wing, Glass Wharf, Bristol, England BS2 0EL