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

Accessing velocity of Manipulation gesture or hand

It looks like the subscribed event passes the deltaPosition but how does one obtain the velocity?

Answers

  • Options

    @constantine according to code comments in the docs velocity is one of the properties on the returned "state" object:

    void InteractionManager_SourcePressed(InteractionSourceState state)
    {
        // state has information about:
           // targeting head ray at the time when the event was triggered
           // whether the source is pressed or not
           // properties like position, velocity, source loss risk
           // source id (which hand id for example) and source kind like hand, voice, controller or other
    }
    

    Windows Holographic User Group Redmond

    WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
    WinHUGR YouTube Channel -- live streamed meetings

  • Options

    the state object doesn't seem to get passed from the delegate from Manipulation ...

    @HoloSheep said:
    @constantine according to code comments in the docs velocity is one of the properties on the returned "state" object:

    void InteractionManager_SourcePressed(InteractionSourceState state)
    {
        // state has information about:
           // targeting head ray at the time when the event was triggered
           // whether the source is pressed or not
           // properties like position, velocity, source loss risk
           // source id (which hand id for example) and source kind like hand, voice, controller or other
    }
    
Sign In or Register to comment.