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

18 lines
520 B
Python

from arm.logicnode.arm_nodes import *
class GetFirstContactNode(ArmLogicTreeNode):
"""Returns the first object that is colliding with the given object.
@seeNode Get Contacts
"""
bl_idname = 'LNGetFirstContactNode'
bl_label = 'Get RB First Contact'
arm_section = 'contact'
arm_version = 1
def init(self, context):
super(GetFirstContactNode, self).init(context)
self.add_input('ArmNodeSocketObject', 'RB')
self.add_output('ArmNodeSocketObject', 'First Contact')