mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
4.3.5
This commit is contained in:
parent
25c0b7cffe
commit
94abe14f0c
8 changed files with 33 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue