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

19 lines
516 B
Python

from arm.logicnode.arm_nodes import *
class GetContactsNode(ArmLogicTreeNode):
"""Returns an array with all objects that are colliding with the
given object.
@seeNode Get First Contact
"""
bl_idname = 'LNGetContactsNode'
bl_label = 'Get RB Contacts'
arm_section = 'contact'
arm_version = 1
def init(self, context):
super(GetContactsNode, self).init(context)
self.add_input('ArmNodeSocketObject', 'RB')
self.add_output('ArmNodeSocketArray', 'Contacts')