This commit is contained in:
NotAKidoS 2023-02-18 23:02:26 -06:00
parent 25c0b7cffe
commit 94abe14f0c
8 changed files with 33 additions and 8 deletions

View file

@ -38,6 +38,8 @@ public class MovementSystemTracker : MonoBehaviour
public void PostVRModeSwitch(bool isVR, Camera activeCamera)
{
//immediatly update camera to new camera transform
movementSystem.rotationPivot = activeCamera.transform;
//lazy way of correcting Desktop & VR offset issue (game does the maths)
movementSystem.TeleportToPosRot(preSwitchWorldPosition, preSwitchWorldRotation, false);
//recenter desktop collision to player object