armory/blender/arm/logicnode/physics/LN_has_contact_array.py
2020-11-17 12:01:15 -03:00

15 lines
544 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_section = 'contact'
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')