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

Interaction Manager

I'm looking for an equivalent to the interaction manager that is in the Astroman (HA 210) tutorial.

I don't see anything in the Holotoolkit like this but it seems like pretty core functionality that would be in Holotoolkit (GazeEnter/GazeExit)

Any best practice ideas/suggestions? Should we just rip the code for it out of the 210 tutorial?

Best Answer

  • Options
    PatrickPatrick mod
    edited May 2016 Answer ✓

    The RaycastHit HitInfo property has the focusedObject (HitInfo.collider.gameObject). If the bool Hit property is false, then the focusedObject should be considered null.

    ===
    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?)

Answers

  • Options

    The GazeManager in HoloToolkit sends "OnGazeEnter" and "OnGazeLeave" messages to objects as it updates. You can find the code on Github.

  • Options
    nashnash ✭✭

    thanks, any reason the FocusedObject is private on this? I'd like to be able to grab the focused object similar to how HA ModelExplorer does.

    I understand a class can be added similiar to InteractibleManager to do this but shouldn't the HoloToolkit just expose the focusedObject property from GazeManager?

  • Options
    PatrickPatrick mod
    edited May 2016 Answer ✓

    The RaycastHit HitInfo property has the focusedObject (HitInfo.collider.gameObject). If the bool Hit property is false, then the focusedObject should be considered null.

    ===
    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?)

Sign In or Register to comment.