Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
SMaton's avatar
SMaton
Honored Guest
13 years ago

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:

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
  • You 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.