Framework for hit detection implemented