void ManipulateObject(Collider col) { // Pickup if (Device.GetTouch(SteamVR_Controller.ButtonMask.Trigger)) { col.attachedRigidbody.isKinematic = true; col.gameObject.transform.SetParent(this.gameObject.transform); if (col.gameObject.GetComponent <Equipable>()) { EquippedObject = col.gameObject; Transform equipable = ItemTransforms.GetDefaultTransform(col.name); EquippedObject.transform.localRotation = equipable.rotation; EquippedObject.transform.localPosition = equipable.position; EquippedObject.GetComponent <Equipable>().EquippedByPlayer(Device); } } // Let Go else if (Device.GetTouchUp(SteamVR_Controller.ButtonMask.Trigger)) { col.gameObject.transform.SetParent(null); col.attachedRigidbody.isKinematic = false; TossObject(col.attachedRigidbody); } }