To check if the blue object is hitting the inner jar located at (oxmin, oymin).
1. check for y direction: it will only occurs if oy+h/2 >= oymin;
2. check for x direction: ox-w/2 <= oxmin [b]and[/b] ox+w/2>=oxmax
the above conditions can be combined with (ox-w/2-oxmin)*(ox+w/2-oxmax)<=0
The above two conditions need to be satisfied at the same with (with [b]and[/b] operator; [u]&&[/u])