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

15 lines
486 B
Python

from arm.logicnode.arm_nodes import *
class GetFirstContactNode(ArmLogicTreeNode):
"""Get first contact node"""
bl_idname = 'LNGetFirstContactNode'
bl_label = 'Get First Contact'
arm_version = 1
def init(self, context):
super(GetFirstContactNode, self).init(context)
self.add_input('ArmNodeSocketObject', 'Object')
self.add_output('ArmNodeSocketObject', 'Object')
add_node(GetFirstContactNode, category=PKG_AS_CATEGORY, section='contact')