private void drawLineReverseByX(Cl next) { GameObject naCylinder = Instantiate(getCylinder()) as GameObject; // All in cylinder is coming from center Vector3 scale = naCylinder.transform.localScale; scale.y = Vector3.Distance(getInstantiated().transform.position, next.getInstantiated().transform.position) / 4; naCylinder.transform.localScale = scale; naCylinder.transform.position = new Vector3((getX() - scale.y), getY(), getZ()); Vector3 rotation = new Vector3(0, 0, 90); naCylinder.transform.Rotate(rotation); }