cancel
Showing results for 
Search instead for 
Did you mean: 

Reporting hand position in the real world

TETA_Tech
Honored Guest
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 3

cybereality
Grand Champion
Moving to developers section.

Yoirgl
Expert Protege
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
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.