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

17 lines
521 B
Python
Raw Normal View History

2020-10-05 19:55:56 +02:00
from arm.logicnode.arm_nodes import *
class PickObjectNode(ArmLogicTreeNode):
"""Pickes the rigid body in the given location using the screen
coordinates (2D)."""
bl_idname = 'LNPickObjectNode'
bl_label = 'Pick RB'
2020-10-27 19:44:37 +01:00
arm_section = 'ray'
2020-10-05 19:55:56 +02:00
arm_version = 1
def init(self, context):
super(PickObjectNode, self).init(context)
self.add_input('NodeSocketVector', 'Screen Coords')
2020-11-17 16:01:15 +01:00
2020-10-05 19:55:56 +02:00
self.add_output('ArmNodeSocketObject', 'RB')
self.add_output('NodeSocketVector', 'Hit')