none
How to get coordinate values. RRS feed

  • Question

  • Hi.

    I want to know how to get foot coordinate values.

    ex) left foot x: -0.000596 y: 0.000001 z: 0.398032

    right foot x: 0.000596 y: 0.000001 z: 0.398032

    what should I use api for get coordinate values..

    plz your answer.

    Thanks.


    • Edited by JaesangKwon Friday, October 28, 2016 7:23 AM
    Friday, October 28, 2016 7:22 AM

All replies

  • My reply is about C#/Unity but you can find the equivalent in C++ if you know what to look for.

    Use the BodyFrame and grab the Body instances.Each body has a way(in C# its a Dictionary) to give you joint positions like you asked. In order to get the feet you just need to ask for the appropriate joint using the JointType enumeration.

    Take note that these positions are as the camera sees them, rotated etc, if the camera is looking from an angle higher above the user.  Here's rather simplistic example.

    Friday, October 28, 2016 2:36 PM