I have tried for hours trying to get the exact position of the edge collider (the edge of the blue bar in picture, pointed to with arrow)
I have tried the .bounds.max , etc of this object but none give me the exact position.
The blue bar is getting scaled from the center (position x: 0), and the red bar is statically positioned at position x: 7.3.
As the blue bar overlaps the red bar and I click the screen, the update function then gets the blue bars collider bounds.max position. But it does not add up.
Debug.Log(rightBar.GetComponent().bounds.max); Outputs 7.01 when clearly its over the 7.3 red bar position?
Hope this makes sense…