Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

Weird behavior when moving an Object with HandDraggable and WorldAnchor Manager methods

Okay so I have an object I want to move with HandDraggable.cs but, I also want to be able to use world anchors on it. However, I do not want to use TapToPlace, but in essence I am doing the same thing that TapToPlace does.

Basically I have a button on my object that when I press it I remove the anchor that is on it through the WorldAnchorManager and enable HandDraggable on it. When I press the button again it does the opposite, disables HandDraggable and attaches a world anchor to the object.

The weird behavior happens sometimes but, not all of the time. Basically what happens is that whenever I go to remove the Anchor sometimes the object moves across the room and becomes attached to the camera sort of like the TapToPlace script does but with opposite movements. If I move toward it, then the object moves toward me, etc. HandDraggable also doesn't work either. When I click the button again, the object gets an anchor correctly and it doesn't move anymore. Once this behavior occurs it repeats itself until I restart the app.

Does anyone have any insight on what might be happening? I don't get any errors or warnings in the debug.

AR Developer

Tagged:

Answers

  • Options

    Update: so I found that it is the HandDraggable is the problem. When I enabled and disabled the script it sometimes started manipulating another object.

    AR Developer

Sign In or Register to comment.