armory/blender/arm/logicnode/physics/LN_pick_rigid_body.py
2020-09-24 19:49:21 -03:00

16 lines
567 B
Python

from arm.logicnode.arm_nodes import *
class PickObjectNode(ArmLogicTreeNode):
"""Use to pick the rigid body in a location using the screen coordinates."""
bl_idname = 'LNPickObjectNode'
bl_label = 'Pick Rigid Body'
arm_version = 1
def init(self, context):
super(PickObjectNode, self).init(context)
self.add_input('NodeSocketVector', 'Screen Coords')
self.add_output('ArmNodeSocketObject', 'Rigid Body')
self.add_output('NodeSocketVector', 'Hit')
add_node(PickObjectNode, category=PKG_AS_CATEGORY, section='ray')