microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6k stars 2.12k forks source link

Initial deadzone for near interaction grabbable objects #4771

Closed wiwei closed 9 months ago

wiwei commented 5 years ago

Filing on behalf of a partner, who was using a bounding box and noticed some odd behavior both on device (HL1) and in simulator.

The issue came up initially in the simulator, where just clicking to "pinch" an object that had a bounding box would also move it toward the camera a little. This is caused by how the simulation code works (where at the beginning of the gesture, the index tip has a different position and rotation compared to the index tip compared to the end). This could be pretty trivially fixed by updating the joint pose data to have the same index tip (no motion, yay!) but this would probably end up masking the underlying issue, which is that maybe there should be some initial manipulation deadzone, which must first be passed before things start moving. (Or maybe this exists and we need to just add docs on this).

They noticed similar issues on HL1 where using the pinch gesture to type would also slightly shift the keyboard itself or the content around, which isn't super helpful (you're trying to interact and it's moving subtly as you're interacting)

MenelvagorMilsom commented 5 years ago

A mentor at the Berlin hack mentioned that a customer was looking for behaviour like this. They wanted the grabbable to be fixed in place, until you moved your hand beyond a threshold, after which the object would jump to your hand position and and you could manipulate as usual.

It seems like if we make the size of this initial deadzone configurable, they may be able to implement the behaviour they were looking for. Let me know if it makes sense to do this here or elsewhere.

Zee2 commented 2 years ago

This is still a great idea, even for MRTK3!

IssueSyncBot commented 9 months ago

We appreciate your feedback and thank you for reporting this issue.

Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.

Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.

Please note that MRTK3 was released in August 2023. It features an all-new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visit https://www.mixedrealitytoolkit.org.

Thank you for your continued support of the Mixed Reality Toolkit!