2D or 3D ?
If 2D, you can use ImagesCollide to check if the non transparent images of rectangle are colliding or overlapping each other.
To calculate the distance you want, I guess is a bit more complex.
What do you want to achieve ?
Sergio.
If 2D, you can use ImagesCollide to check if the non transparent images of rectangle are colliding or overlapping each other.
To calculate the distance you want, I guess is a bit more complex.
What do you want to achieve ?
Sergio.