creates collision mechanism