shatalmic
6 years agoMember
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.