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?
