Detect which side a sprite is touching another sprite

Is there a way to detect which side a sprite touches another sprite? For example, if a basketball is touched by its left side console.log(“left”), and if it it touched by its right side, console.log(“right”)

I’m unaware of an easy way to do that. I’ll try to see if I can find anyone else who would know better, but I don’t know of any documentation to that effect.

Mike