Forum Discussion

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

Getting the head/neck height regardless of rotation

Using the HMD/Camera position doesn't quite cut it because it's affected by the head's rotation. I would like to get a height that's not affected by it. Or as little as possible, so that I get the same result whether the player is looking up or down.

I thought the neck position from the Get Pose function in the Oculus library would work but it obviously doesn't return what I thought it would.

Thanks for your time.

1 Reply

Replies have been turned off for this discussion
  • Thanks!

    Actually the returned Z seems to ignore the rotation. My problem is that I was un-rotating the HMD position by its rotation and while it achieved what I wanted for the forward/lateral movement, it screwed the height. I fixed it by only using the yaw.

    What I'm trying to achieve here is to determine some player's actions based on his head and hands movement. 

    It would be very useful if some of that stuff would be part of the SDK/Engine. Like an estimation of the user's torso position and orientation. You guys are obviously already doing this for avatars and whatnot.