mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 23:09:22 +00:00
[DesktopVRSwitch] Reworked SteamVR Initialization
New SteamVR initialization to avoid warnings/errors on switch.
This commit is contained in:
parent
61a45f97bc
commit
5f95755ad2
8 changed files with 39 additions and 306 deletions
|
@ -1,6 +1,7 @@
|
|||
using ABI_RC.Core.EventSystem;
|
||||
using ABI_RC.Core.Player;
|
||||
using ABI_RC.Core.Savior;
|
||||
using ABI_RC.Systems.MovementSystem;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NAK.DesktopVRSwitch;
|
||||
|
@ -16,6 +17,15 @@ internal static class Utils
|
|||
return PlayerSetup.Instance.desktopCamera;
|
||||
}
|
||||
|
||||
//stole from kafe :>
|
||||
internal static Vector3 GetPlayerRootPosition()
|
||||
{
|
||||
return MovementSystem.Instance.rotationPivot.position with
|
||||
{
|
||||
y = MovementSystem.Instance.transform.position.y
|
||||
};
|
||||
}
|
||||
|
||||
internal static void ReloadLocalAvatar()
|
||||
{
|
||||
DesktopVRSwitch.Logger.Msg("Attempting to reload current local avatar from GUID.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue