HTML and CSS Reference
In-Depth Information
Figure 9-4. Collision detection with a rectangle's bounding box.
If you really want to see the inaccuracy of this method in action, instead of a rectangle, try drawing a circle,
or some other irregular shape. Some objects will appear to hover in mid-air as they “hit” other objects, as
shown in Figure 9.5.
 
Search WWH ::




Custom Search