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

Click and Drag to draw a box

Is there a way to click and drag(airtap and hold and move and release) to draw a box(3D plane) using HoloToolKit?

Tagged:

Answers

  • Options

    @ctsholo you can use HandDraggable script from HoloToolKit on your object to click and drag, it is located in HoloToolKit > Input > Script > Interaction folder

  • Options
    ReeleyReeley ✭✭✭

    You could use the IInputClicked interface. OnInputDown you get your first corner of the cube and with OnInputUp you get your second corner of the cube. Then you have your diagonal vector of the cube and you can calculate the center of it. Then adjust your scale depending on how long the diagonal vector is.

    Make sure you also implement the OnSourceLost method of the ISourceStateHandler interface, so you know when hololens cant recognize your hand anymore.

  • Options

    Thank you for the response. I followed this tutorial to make this work https://billmccrary.com/holotoolkit-simple-dragresizerotate/

Sign In or Register to comment.