fixes n stuff

This commit is contained in:
NotAKidoS 2023-02-02 01:09:16 -06:00
parent 760ab0b0ae
commit 6634a4163d
5 changed files with 31 additions and 25 deletions

View file

@ -17,7 +17,10 @@ internal class HarmonyPatches
public static void GrabbedObjectPatch(ref CVRPickupObject __instance)
{
// Need to only run when the object is grabbed by the local player
if (!__instance.IsGrabbedByMe()) return;
if (__instance._controllerRay == null) return;
//and only if its a prop we support
if (__instance.gripType == CVRPickupObject.GripType.Origin) return;
Quaternion originalRotation = __instance.transform.rotation;
Transform referenceTransform = __instance._controllerRay.transform;