armory/blender/arm/logicnode/physics/LN_has_contact_array.py

16 lines
537 B
Python

from arm.logicnode.arm_nodes import *
class HasContactArrayNode(ArmLogicTreeNode):
"""Has contact array node"""
bl_idname = 'LNHasContactArrayNode'
bl_label = 'Has Contact Array'
arm_version = 1
def init(self, context):
super(HasContactArrayNode, self).init(context)
self.add_input('ArmNodeSocketObject', 'Object 1')
self.add_input('ArmNodeSocketArray', 'Objects')
self.add_output('NodeSocketBool', 'Bool')
add_node(HasContactArrayNode, category=PKG_AS_CATEGORY, section='contact')