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

Rigidbody's velocity gets set to 0 after releasing from near interaction (workaround included) #10255

Closed NiklasDanz closed 9 months ago

NiklasDanz commented 3 years ago

Describe the bug

When trying to grasp and throw an object from close proximity (not pointer), the object is not keeping its previous velocity, but stops in mid air and falls down straight.

To reproduce

Steps to reproduce the behavior:

  1. Create a Cube with a Collider, a Rigidbody, a ObjectManipulator and NearInteractionGrabbable component attached.
  2. Optional: Reduce the project's gravity in the Project Settings (to -4), so its easier to throw the cube further
  3. On the ObjectManipulator enable "Use Forces For Near Manipulation" and set "Release Behavior" to "Everything".
  4. Create a large Plane/Cube with a Collider underneath and set its Layer to "Spatial Awareness"
  5. Deploy to device or simulator and grasp the Cube with your hand (Hololens 2 required)
  6. Throw the cube

Expected behavior

The cube moves away according to the force it's thrown at.

Workaround / Hotfix

On the ObjectManipulator component set "Release Behavior" to "Nothing".

Your setup (please complete the following information)

Target platform (please complete the following information)

david-c-kline commented 3 years ago

This may be related to a change that went into 2.7.0.

stale[bot] commented 2 years ago

This issue has been marked as stale by an automated process because it has not had any recent activity. It will be automatically closed in 30 days if no further activity occurs. If this is still an issue please add a new comment with more recent details and repro steps.

yifeifang commented 2 years ago

https://github.com/microsoft/MixedRealityToolkit-Unity/issues/7178 Seems like I'm still experiencing the same issue mentioned here and in the above link. I will try out the set release behavior to nothing workaround and see if it fix the issue

yifeifang commented 2 years ago

Still have the same issue. Cannot throw with near manipulation

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 security 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!