Hello, this is my first post. I am creating my own game and i have no idea how to measure distance from object (which can be dragged by mouse) to another object (which is BoxCollider2D, used for ground(not falling down).
Better look on screen below:
I think it can be done by raycast but i am not sure and i don’t know how. Docs needs examples!
