18 lines
547 B
Python
18 lines
547 B
Python
|
import bpy
|
||
|
from bpy.props import *
|
||
|
from bpy.types import Node, NodeSocket
|
||
|
from arm.logicnode.arm_nodes import *
|
||
|
|
||
|
class HasContactArrayNode(Node, ArmLogicTreeNode):
|
||
|
'''Has contact array node'''
|
||
|
bl_idname = 'LNHasContactArrayNode'
|
||
|
bl_label = 'Has Contact (Array)'
|
||
|
bl_icon = 'QUESTION'
|
||
|
|
||
|
def init(self, context):
|
||
|
self.inputs.new('ArmNodeSocketObject', 'Object 1')
|
||
|
self.inputs.new('ArmNodeSocketArray', 'Objects')
|
||
|
self.outputs.new('NodeSocketBool', 'Bool')
|
||
|
|
||
|
add_node(HasContactArrayNode, category='Physics')
|