how can I measure the exact distance between the edge of several objects of the same family?
Let me explain, in my games there are many objects (100+) of the same family but of different shapes and sizes (all are immobile)
when creating the scene I chose a random object and I would like the colors of the others to be a gradient based on the distance they have with the "SelectedObject" so I tried to do Distance(SelectedObjectX,SelectedObjectY,FamilyX ,FamilyY) but the problem with this command is that it is based on the point of origin and therefore in my example if the pink object is the selected object then the command will say that the green object is closer than the 'purple object and that's not what I want, so I would have to use the collision polygon but I don't know how to do it