void OnTriggerEnter(Collider other) { // if game object intersect background if (other.gameObject.tag.Equals("DisplayPlane")) { if (ARRootCollider.bounds.min.z <= 0) { float z_transform_val = Mathf.Abs(ARRootCollider.bounds.min.z) + 50; gameObject.transform.position = new Vector3(gameObject.transform.position.x, gameObject.transform.position.y, z_transform_val); ARCamera.PositionCameraZ(z_transform_val); } } }