from lnx.logicnode.lnx_nodes import * class HasContactNode(LnxLogicTreeNode): """Returns whether the given rigid body has contact with another given rigid body.""" bl_idname = 'LNHasContactNode' bl_label = 'Has Contact' lnx_section = 'contact' lnx_version = 1 def lnx_init(self, context): self.add_input('LnxNodeSocketObject', 'RB 1') self.add_input('LnxNodeSocketObject', 'RB 2') self.add_output('LnxBoolSocket', 'Has Contact')