Build 2022r170ex3 code changes

This commit is contained in:
SDraw 2022-12-03 19:12:35 +03:00
parent dcd94ae906
commit 25c4eaad51
No known key found for this signature in database
GPG key ID: BB95B4DAB2BB8BB5
14 changed files with 202 additions and 167 deletions

View file

@ -1,9 +1,13 @@
using UnityEngine;
using ABI_RC.Systems.IK;
namespace ml_amt
{
static class Utils
{
public static bool IsInVR() => ((ABI_RC.Core.Savior.CheckVR.Instance != null) && ABI_RC.Core.Savior.CheckVR.Instance.hasVrDeviceLoaded);
public static bool IsInFullbody() => ((IKSystem.Instance != null) && IKSystem.Instance.BodySystem.FBTAvailable());
// Extensions
public static Matrix4x4 GetMatrix(this Transform p_transform, bool p_pos = true, bool p_rot = true, bool p_scl = false)
{