using GogoGaga.OptimizedRopesAndCables; using UnityEngine; using UnityEngine.XR.Interaction.Toolkit.Interactables; public class MaterialRopeDetachAction : MonoBehaviour { Vector3 InitialCords; Quaternion InitialRotation; //Rope Rope; // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { InitialCords = transform.localPosition; InitialRotation = gameObject.transform.rotation; //Rope = gameObject.GetComponentInChildren(); } // Update is called once per frame void Update() { } public void reset() { transform.localPosition = InitialCords; transform.rotation = InitialRotation; //Rope.RecalculateRope(); } }