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

Spatial Map seems to be removing object's world anchor?

The object I am trying to move around my environment starts to float away if any part of the collider comes in contact with the spatial mapped mesh. I believe that the world anchor is somehow deleted when it contacts the mesh. I can grab and try to move it after it starts floating away but at this point there is no connection to the initial world anchor. It continues to float away from where I try to leave it.

I am using all holotoolkit scripts and prefabs.

My GameObject resides within an emptyGameObject which is the 'host'. The host contains my object and an anchor object. The anchor object has the WorldAnchor script. The GameObject has the scripts, Gesture Responder, Hand Draggable, and Tap To Place (the parent Game Object To Place is the anchor).

My InputManager has the scripts; Gaze Manager, Gaze Stabalizer, Input Manager Stabilization Plane Modifier, and Gestures Input.

Sometimes I'll get an error that says that the anchor is deleted before it can be called. but I don't see that error with this setup.
No other errors show up at this time.

Also, how and where do I add an error log to help me find problems? Is it added to individual scripts?

Answers

  • Options

    I figured it out, the rigid body clashes with the spatial mesh and breaks it. I have resorted to losing the draggable script and am just using the tap to place. I think I need to add a temp rigidbody while dragging then turn it off once placed.

Sign In or Register to comment.