I was doing a program that enables an object to change its size to a certain number so I use transform.localscale.y and at the end of this object connect an object but when I connect the object by changing its position using transform.position.y equal to that of the scale, the does not intersect at any point in space. I think there is a ratio for the two or my program is wrong. May I ask for some suggestions for this.Thanks.
A simple way to do this without needing to figure out any math is to create an empty transform, make that a child of the object, and position it at the edge of the object. When the object is scaled, the empty transform child will go with it. So you can use the global position of the empty transform.