Meta controller rotation bug fix, Wirecap EndPos interaction improved

Revert OpenXRPlugin update to 1.15.1 cz on 1.16.1 on android build controllers rotated over z axis
This commit is contained in:
FreshMix committed 2025-12-24 16:50:16 +03:00
1 parent 430f676e49
commit 05bd220cad
85 files changed
+11340 -16270

No files matched your search

+3 -2
View File
@@ -30,8 +30,9 @@ public class FilteredSocketReel : MonoBehaviour
}
private void OnObjectPlaced(SelectEnterEventArgs args)
{
MachineController.ReelInserted(SocketTagNumber);
{
args.interactableObject.transform.GetComponent<Collider>().enabled = false;
MachineController.ReelInserted(SocketTagNumber);
args.interactableObject.transform.GetComponent<BabinaScript>().SwitchToRope(socketInteractor.interactionLayers, socketInteractor.attachTransform);
}
+9 -5
View File
@@ -46,14 +46,17 @@ public class FilteredSocket : MonoBehaviour
// Åñëè ó îáúåêòà íå òîò òåã, îòìåíÿåì åãî ðàçìåùåíèå
if (!args.interactableObject.transform.CompareTag(this.gameObject.tag))
{
//Debug.Log(socketInteractor.name + " " + args.interactableObject.transform.gameObject.name);
socketInteractor.interactionManager.SelectExit(socketInteractor, args.interactableObject);
//Debug.Log(socketInteractor.name + " " + args.interactableObject.transform.gameObject.name);
args.interactableObject.transform.GetComponent<MeshRenderer>().enabled = true;
socketInteractor.interactionManager.SelectExit(socketInteractor, args.interactableObject);
MachineController.MaterialRemoved(SocketTagNumber);
}
else {
//gameObject.
//SocketVisual.Rotate(SocketVisualRotationAngle, 0, 0, Space.Self);
SocketVisual.localRotation = Quaternion.Euler(InitialRotation.x - SocketVisualRotationAngle, InitialRotation.y, InitialRotation.z);
//gameObject.
//SocketVisual.Rotate(SocketVisualRotationAngle, 0, 0, Space.Self);
args.interactableObject.transform.GetComponent<MeshRenderer>().enabled = false;
SocketVisual.localRotation = Quaternion.Euler(InitialRotation.x - SocketVisualRotationAngle, InitialRotation.y, InitialRotation.z);
SocketToHolderRope.enabled = true;
MachineController.MaterialInserted(SocketTagNumber);
@@ -71,6 +74,7 @@ public class FilteredSocket : MonoBehaviour
args.interactableObject.transform.gameObject.GetComponent<MaterialRopeDetachAction>().ResetCheck();
}*/
//args.interactableObject.transform.gameObject.GetComponent<MaterialRopeDetachAction>().reset();
args.interactableObject.transform.GetComponent<MeshRenderer>().enabled = true;
SocketVisual.localRotation = Quaternion.Euler(InitialRotation.x, InitialRotation.y, InitialRotation.z);
MachineController.MaterialRemoved(SocketTagNumber);
SocketToHolderRope.enabled = false;