public void RemovePlacements() { // Destroy(placedGameObject); // placedGameObject = null; _arDebugManager.LogInfo($"RemovePlacements"); for (int i = 0; i < _arCloudAnchorManager.NUM_OF_ANCHOR; i++) { Destroy(placedGameObjectList[i]); _arDebugManager.LogInfo($"RemovePlacements #{i}"); placedGameObjectList[i] = new GameObject(); } _arCloudAnchorManager.numOfQueued = 0; numOfPlaced = 0; }
/// <summary> /// /// </summary> /// <param name="other">The collider that stays</param> private void OnTriggerStay(Collider other) { if (entity.IsOwner) { if (other.gameObject.tag == handTag) { // if (ManomotionManager.Instance.Hand_infos[0].hand_info.gesture_info.mano_gesture_trigger == grabTrigger && actionCoolDown == 0) if ((other.gameObject.GetComponent <HandColliderBolt>().grabTriggering) && (actionCoolDown == 0)) { Debug.Log("Action: grabTrigger"); _arDebugManager.LogInfo($"Action: grabTrigger, parent: {transform.parent.gameObject.name}"); if (other.gameObject != colliding) { Debug.Log("Action: stick with hand"); colliding = other.gameObject; collidingOffset = transform.TransformPoint(Vector3.zero) - other.transform.TransformPoint(Vector3.zero); // state.IsKinematic = true; gameObject.GetComponent <Rigidbody>().isKinematic = true; } else { Debug.Log("Action: FreeFall from grab"); FreeFall(); } actionCoolDown = 50; } else if (other.gameObject.GetComponent <HandColliderBolt>().pinching) { transform.Rotate(Vector3.up * Time.deltaTime * 50, Space.World); } } } }
public void hi() { _arDebugManager.LogInfo($"hi"); }
public void StartHostAnchor() { _cloudAnchorsMetaManager = GameObject.FindWithTag("CloudAnchorsMetaBolt").GetComponent <CloudAnchorsMetaManagerOld>(); _arDebugManager.LogInfo(_cloudAnchorsMetaManager.confirmimg()); _arDebugManager.LogInfo($"Start Host Anchor, numOfQueued = {numOfQueued}"); quality = _arAnchorManager.EstimateFeatureMapQualityForHosting(GetCameraPose()); for (i = 0; i < numOfQueued; i++) { anchorToResolveList[i] = null; } for (i = 0; i < numOfQueued; i++) { HostAnchor(i); } numOfToBeResolved = 0; anchorUpdateInProgress = true; }
public override void OnEvent(ConnectEvent evnt) { _arDebugManager.LogInfo($"ConnectEvent is receviced"); StartCoroutine(setCollidersParent()); }
public void hi() { _arDebugManager.LogInfo($"hi, this is ARCloudAnchorManagerBolt.cs"); }