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

Hologram wont move

I recently set up a scene similar to the Astronaut scene in Holograms 211. I've switched out the astronaut with an own object, and I've added voice commands. However, when I try to drag and move (manipulate) the object wont budge... It's like it is stuck.

Any suggestions on this matter?

Best Answer

Answers

  • Options
    sptspt ✭✭

    maybe you didn't put a collider on the object?

  • Options

    better post with a pic of the inspector

  • Options

    Did you attach a WorldAnchor to your object?

    ===
    This post provided as-is with no warranties and confers no rights. Using information provided is done at own risk.

    (Daddy, what does 'now formatting drive C:' mean?)

  • Options

    @spt said:
    maybe you didn't put a collider on the object?

    Box Collider is attached..

  • Options

    @Patrick said:
    Did you attach a WorldAnchor to your object?

    Interesting. What is a World anchor? What does it do?

  • Options

    @Patrick
    How to attach a WorldAnchor to Object.

  • Options
    XarthisiusXarthisius ✭✭
    Answer ✓

    @Wzrd said:

    @Patrick said:
    Did you attach a WorldAnchor to your object?

    Interesting. What is a World anchor? What does it do?

    You can read here about world anchors: https://developer.microsoft.com/en-us/windows/holographic/world_anchor_in_unity

    @Ankit09_Sangani said:
    @Patrick
    How to attach a WorldAnchor to Object.

    There is test/example in HoloToolkit about moving objects. It is called TapToPlace (also there is a script with same name that is used in that example for moving objects) https://github.com/Microsoft/HoloToolkit-Unity/tree/master/Assets/HoloToolkit/SpatialMapping/Tests

  • Options

    @Xarthisius said:

    @Wzrd said:

    @Patrick said:
    Did you attach a WorldAnchor to your object?

    Interesting. What is a World anchor? What does it do?

    You can read here about world anchors: https://developer.microsoft.com/en-us/windows/holographic/world_anchor_in_unity

    @Ankit09_Sangani said:
    @Patrick
    How to attach a WorldAnchor to Object.

    There is test/example in HoloToolkit about moving objects. It is called TapToPlace (also there is a script with same name that is used in that example for moving objects) https://github.com/Microsoft/HoloToolkit-Unity/tree/master/Assets/HoloToolkit/SpatialMapping/Tests

    Awesome! Thanks! I will take a look at it later.

  • Options

    @Patrick @Wzrd @Xarthisius

    There is test/example in HoloToolkit about moving objects. It is called TapToPlace (also there is a script with same name that is used in that example for moving objects) https://github.com/Microsoft/HoloToolkit-Unity/tree/master/Assets/HoloToolkit/SpatialMapping/Tests

    This example no longer seems to work with the lasted version of unity. 5.4.0b14. I'm not able to get the cube to move. I'm also running the latest version of visual studio with update 3. Side note the Origami Holo Academy Tutorial no longer builds with the latest version of these tools either.

  • Options

    @Patrick @Wzrd @Xarthisius

    i am also not able to move an object always i got Vector3 Position 0 on manipulation Start and update event.

  • Options

    I'm using 5.4.0f3-HTP. (Which I think is later than b14). I'll check the example scene.

    ===
    This post provided as-is with no warranties and confers no rights. Using information provided is done at own risk.

    (Daddy, what does 'now formatting drive C:' mean?)

  • Options

    @wzrd BTW, attaching the anchor is NOT what you want to be doing, I was just making sure that you hadn't...

    Can you post the script you are using to move your object?

    ===
    This post provided as-is with no warranties and confers no rights. Using information provided is done at own risk.

    (Daddy, what does 'now formatting drive C:' mean?)

  • Options

    Sorry for the delay @Patrick! I couldn't attach it so I just pastbin-d it http://pastebin.com/rQ9T9ZDS

  • Options

    Do you have a game object with the spatial mapping manager attached?

    in the update function you might try to add an else condition to the if (Physics.Raycast...)

    like this:

    else
    {
    this.transform.position = headPosition + gazeDirection * 2.0f;
    }
    

    ===
    This post provided as-is with no warranties and confers no rights. Using information provided is done at own risk.

    (Daddy, what does 'now formatting drive C:' mean?)

  • Options

    I'll give that a shot, but the stock TapToPlace demo that's in the HoloToolkit is what I was working with and the cube would not move. I tried some other objects as well.

  • Options

    @steve_boyd Maybe you are doing wrong gesture I am not sure … Coz I am facing same issue earlier
    Can you give it a try on this to HoloToolkit Test example for TapToPlace scene…
    • Select object by AirTap on it (in Test example Cube) move your finger to any direction and check like object is traveling with you or not? And again AirTap to place object on location you want to place…
    • If you are using emulator then for Select/AirTap use Alt + mouse right click and release Alt and right click and now just drag object with mouse left click and for placing it on surface Again use Alt + mouse right click

  • Options

    Hi Krutarth, I have followed the Holograms 101 tutorial and your last comment but the origami stage doesn't move in the emulator, maybe I'm doing wrong gesture but I'm trying like you describe, thanks!

    Nacho

Sign In or Register to comment.