LNXSDK/leenkx/blender/lnx/logicnode/physics/LN_get_rb_contacts.py
2025-01-22 16:18:30 +01:00

18 lines
469 B
Python

from lnx.logicnode.lnx_nodes import *
class GetContactsNode(LnxLogicTreeNode):
"""Returns an array with all objects that are colliding with the
given object.
@seeNode Get First Contact
"""
bl_idname = 'LNGetContactsNode'
bl_label = 'Get RB Contacts'
lnx_section = 'contact'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketObject', 'RB')
self.add_output('LnxNodeSocketArray', 'Contacts')