I thought about this but it would be a nice solution if my target hitbox was a square, which is not
edit : well, it's actually a circle. Maybe I can just, every tick, check the distance between the center of my first object and the center of my target. If the distance is equal or smaller than the target radius, then it's a hit.