Headset position relative to OVRCameraRig Unity GameObject Transform Position — Oculus
Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

Headset position relative to OVRCameraRig Unity GameObject Transform Position

shatalmicshatalmic Posts: 2
NerveGear
I am making a game where the play will only walk around physically. The OVRCameraRig game object in Unity will never actually move.

I have this working, but now need to trigger things when the player "gets" to a particular location in the game.

Since the player is physically moving around and the OVRCameraRig isn't I can't figure out what game object to put a trigger component onto.

I have a debug output mechanism that I can show the x,y,z position of whatever game object I want showing in a HUD. I have put several game objects to output that position and none of them move when the player (headset) moves around in the scene.

This is an Oculus Quest.

Answers

  • shatalmicshatalmic Posts: 2
    NerveGear
    I was thinking maybe there is another way to approach this.

    Currently when the player moves around in the real world the OVRPlayerController (if using one of those) doesn't move in the game. It is like there is some virtual something that moves relative to the game OVRPlayerController. The camera objects don't seem to move either as I have displayed their position in a debug window.

    Is there a way to make the OVRPlayerController object move around as the player moves around in the real world?
Sign In or Register to comment.