Forum Discussion
shatalmic
6 years agoMHCP Member
Headset position relative to OVRCameraRig Unity GameObject Transform Position
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.
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.
5 Replies
Replies have been turned off for this discussion
- shatalmicMHCP MemberI 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? - shatalmicMHCP MemberIs there anyone that can help on this?
- nilskuijpersHonored GuestRunning into this too. I'd like to move an object with the camera rig / player controller. In the editor this works fine by following their respective transforms, but in a build these values are static. Any word on this?
- rh_galaxyHeroic ExplorerWhat about the Transform of the OVRCameraRig->TrackingSpace->CenterEyeAnchor ?
- MrBenPiHonored Guest
I have run into this as well. I thought that the center eye anchor would work since I was able to see transform information for it, but no luck.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device