Add physics flags to prevent running contact if not necessary (beginContactCallEnabled, endContactCallEnabled, etc.).