Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
TETA_Tech's avatar
TETA_Tech
Honored Guest
8 years ago

Reporting hand position in the real world

I want to measure the real length of the player's hands, in the real world. Any ideas how to implement it using the Oculus Rift and Touch sensors? I am trying to use VR only, without data input (input a distance, mark a reference stick etc.)

Thanks for useful ideas. 

3 Replies

  • Yoirgl's avatar
    Yoirgl
    Start Partner
    If the question is how to get the real world position of the hand,
    personally i use something a bit barbaric like :

    Player.transform.FindChild("TrackingSpace").transform.TransformPoint(OVRInput.GetLocalControllerPosition(OVRInput.Controller.RTouch));

    not sure if it's the way to go but it's working fine so far

    Yoirgl.
  • weasel47's avatar
    weasel47
    Heroic Explorer

    Yoirgl said:

    If the question is how to get the real world position of the hand,
    personally i use something a bit barbaric like :

    Player.transform.FindChild("TrackingSpace").transform.TransformPoint(OVRInput.GetLocalControllerPosition(OVRInput.Controller.RTouch));

    not sure if it's the way to go but it's working fine so far

    Yoirgl.


    That gives you the position in game world space, not real world space.

    OP, if you ask the player to put their arms straight out in front of them and then you look at the local position of the hands using, for example "OVRInput.GetLocalControllerPosition(OVRInput.Controller.RTouch)" then you can get something close to the length of the arms.  You just have to cancel out the neck-to-shoulder distance.

    If it really is the length of the hands that you want, not the arms, I don't have any suggestions for that.