Forum Discussion
SMaton
13 years agoHonored Guest
Jump to specific location with position/orientation
Hi everyone,
in my application I want to make "jump" the user to a specific point in space.
I tried to "simply" copy over the position and orientation of the target point to the OVRPlayerController transform:
(NB: The "copy the orientation" is just a test and will be replaced by adjusting the forward direction of the transform without affecting the camera up/left/right). While the position is set as expected, the orientation is not copied.
Has anyone a hint what to look at?
in my application I want to make "jump" the user to a specific point in space.
I tried to "simply" copy over the position and orientation of the target point to the OVRPlayerController transform:
player.transform.position = jumpLocations[0].position;
layer.transform.rotation = jumpLocations[0].rotation;
(NB: The "copy the orientation" is just a test and will be replaced by adjusting the forward direction of the transform without affecting the camera up/left/right). While the position is set as expected, the orientation is not copied.
Has anyone a hint what to look at?
1 Reply
Replies have been turned off for this discussion
- cyberealityGrand ChampionYou can try looking into the "Follow Orientation" property on the OVRCameraController, but I'm not sure that does exactly what you need. You can also look at "OVRCameraControler::SetOrientationOffset()", though this may be difficult to work with manually. The other option is "OVRDevice::ResetOrientation()" which will recenter the view.
Hope that helps.
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
- 9 months ago