armory/blender/arm/logicnode/navmesh/LN_pick_navmesh_location.py
2020-10-05 14:55:56 -03:00

16 lines
546 B
Python

from arm.logicnode.arm_nodes import *
class PickLocationNode(ArmLogicTreeNode):
"""Pick a location coordinates in the given NavMesh."""
bl_idname = 'LNPickLocationNode'
bl_label = 'Pick NavMesh Location'
arm_version = 1
def init(self, context):
super(PickLocationNode, self).init(context)
self.add_input('ArmNodeSocketObject', 'NavMesh')
self.add_input('NodeSocketVector', 'Screen Coords')
self.add_output('NodeSocketVector', 'Location')
add_node(PickLocationNode, category=PKG_AS_CATEGORY)