LNXSDK/leenkx/blender/lnx/logicnode/physics/LN_has_contact_array.py

15 lines
492 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class HasContactArrayNode(LnxLogicTreeNode):
"""Returns whether the given rigid body has contact with other given rigid bodies."""
bl_idname = 'LNHasContactArrayNode'
bl_label = 'Has Contact Array'
lnx_section = 'contact'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketObject', 'RB')
self.add_input('LnxNodeSocketArray', 'RBs')
self.add_output('LnxBoolSocket', 'Has Contact')