armory/blender/arm/logicnode/physics/LN_has_contact_array.py
2020-10-05 14:55:56 -03:00

16 lines
591 B
Python

from arm.logicnode.arm_nodes import *
class HasContactArrayNode(ArmLogicTreeNode):
"""Returns whether the given rigid body has contact with other given rigid bodies."""
bl_idname = 'LNHasContactArrayNode'
bl_label = 'Has Contact Array'
arm_version = 1
def init(self, context):
super(HasContactArrayNode, self).init(context)
self.add_input('ArmNodeSocketObject', 'RB')
self.add_input('ArmNodeSocketArray', 'RBs')
self.add_output('NodeSocketBool', 'Has Contact')
add_node(HasContactArrayNode, category=PKG_AS_CATEGORY, section='contact')