So when you said the distance is not for example
my entity = -30

it's the distance between the origin and the entity is 30 ?

so with vec_length I can't compare two position on the X axis ? like
if my.entity.x < your.entity.x

I tried with abs but it didn't work.

cheers