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

Applying Hold gesture and gameobject move code to the Origami project

Hi, I've gone through the Origami tutorial, as well as the Gaze and Gesture tutorials in the Hololens Academy. I've adapted the Origami tutorial to a project that I'm working on, and it is working really great. I've added a menu system, and can click on the menu to animate different parts of a 3D model that I've imported as and FBX from 3D Studio Max. I even have voice commands triggering the same animation. I've found that the code for the Origami tutorial is easy to understand and adapt to my needs, so thanks for that! Note: I'm really much more of a 3D person than a programmer...

My 3D model is floating in front of the menu, and now I would like to add a tap gesture (Or voice command saying "move model") so that I can move the model to a different location by draging using the hold gesture. I've gone through the Gesture tutorial, and have attempted to apply the code in that tutorial to my modified code in the Origami tutorial, but I am having problems getting this code to integrate. I've attempted to merge my current project into the Gesture project, but all kinds of headaches are arising from that, and there's way more code and functionality in the Gesture project than I really need. I simply need a to move an object using the hold gesture in my current project.

I'm using the GazeGestureManager in the origami tutorial as sort of my "central brain" where I control all of the commands for the menu as well as triggering the animations. The "tap" functionality is already in there, so it's not a problem adding new tap commands. What I'm having problems with is adding the Hold gesture and move functionality to this script. Any advice on how to best go about doing this would be appreciated.

I apologize if I haven't given enough information here, please let me know if you need more...

Jeff

Tagged:

Best Answer

Answers

  • Options

    Wow, thank you for this...I will attempt to implement it and let you know how it goes! I apologize for taking so long to get back to you but I was out for the holidays.

    Many thanks,
    Jeff

Sign In or Register to comment.