Forum Discussion
TETA_Tech
8 years agoHonored Guest
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.
Thanks for useful ideas.
3 Replies
- cyberealityGrand ChampionMoving to developers section.
- YoirglStart PartnerIf 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. - weasel47Heroic 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.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 4 years agoAnonymous
- 3 months ago