def check_contact(self, entity_a, entity_b=None):
    'Check if the loaded object is stable.\n\n        Args:\n            entity_a: The first entity.\n            entity_b: The second entity, None for any entities.\n\n        Returns:\n            True if they have contacts, False otherwise.\n        '

    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
    if (not isinstance(entity_a, (list, tuple))):
        entities_a = [entity_a]
    else:
        entities_a = entity_a
    if (not isinstance(entity_b, (list, tuple))):
        entities_b = [entity_b]
    else:
        entities_b = entity_b
    has_contact = False
    for a in entities_a:
        for b in entities_b:
            if _check_contact(a, b):
                has_contact = True
                break
    return has_contact
Check if the loaded object is stable.

Args:
    entity_a: The first entity.
    entity_b: The second entity, None for any entities.

Returns:
    True if they have contacts, False otherwise.
def check_contact(self, entity_a, entity_b=None):
    'Check if the loaded object is stable.\n\n        Args:\n            entity_a: The first entity.\n            entity_b: The second entity, None for any entities.\n\n        Returns:\n            True if they have contacts, False otherwise.\n        '

    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
    if (not isinstance(entity_a, (list, tuple))):
        entities_a = [entity_a]
    else:
        entities_a = entity_a
    if (not isinstance(entity_b, (list, tuple))):
        entities_b = [entity_b]
    else:
        entities_b = entity_b
    has_contact = False
    for a in entities_a:
        for b in entities_b:
            if _check_contact(a, b):
                has_contact = True
                break
    return has_contact