How to move object after set it to certain position? [VR Rift]
private Vector3 Bpos = new Vector3(-2.861f, -0.39f, 3.005f);
public Transform cam;
cam.transform.position = Bpos;
When the new scene is loaded, "cam" (OVRPlayerController for VR) is set to Bpos position. I cannot move around by using PrimaryThumbstick after that but I still can look around by using SecondaryThumbstick.
What can I do to move around ? Or is there another way to move the camera to a certain position when the new scene is loaded?
Thank you.
Why don't you move the entire player controller in the scene to get the camera to that position? You'll have to work out the math with offsets and the like (positions are additive in a transform hierarchy, rotations are multiplicative)
@Vicarian Because I received text from last scene such as if user type 'a' then user suppose to start the new scene at the position 'A' (which is the certain coordinate.) By using this method user can start the new scene at the certain position but cannot around after that. Is there any way to solve this problem? Thank you.