mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
fixes n stuff
This commit is contained in:
parent
760ab0b0ae
commit
6634a4163d
5 changed files with 31 additions and 25 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue