def _check_contact(entity_a, entity_b=None):
    a_uid = entity_a.uid
    if (entity_b is None):
        b_uid = None
    else:
        b_uid = entity_b.uid
    contact_points = self._physics.get_contact_points(a_uid, b_uid)
    has_contact = (len(contact_points) > 0)
    return has_contact
def _check_contact(entity_a, entity_b=None):
    a_uid = entity_a.uid
    if (entity_b is None):
        b_uid = None
    else:
        b_uid = entity_b.uid
    contact_points = self._physics.get_contact_points(a_uid, b_uid)
    has_contact = (len(contact_points) > 0)
    return has_contact