armory/blender/arm/logicnode/navmesh/LN_pick_navmesh_location.py

16 lines
546 B
Python
Raw Normal View History

2017-04-03 22:29:46 +02:00
from arm.logicnode.arm_nodes import *
class PickLocationNode(ArmLogicTreeNode):
2020-10-05 19:55:56 +02:00
"""Pick a location coordinates in the given NavMesh."""
2017-04-04 23:11:31 +02:00
bl_idname = 'LNPickLocationNode'
2020-09-29 18:38:17 +02:00
bl_label = 'Pick NavMesh Location'
arm_version = 1
2017-04-03 22:29:46 +02:00
def init(self, context):
super(PickLocationNode, self).init(context)
2020-09-29 18:38:17 +02:00
self.add_input('ArmNodeSocketObject', 'NavMesh')
2020-09-08 21:49:02 +02:00
self.add_input('NodeSocketVector', 'Screen Coords')
self.add_output('NodeSocketVector', 'Location')
2017-04-03 22:29:46 +02:00
add_node(PickLocationNode, category=PKG_AS_CATEGORY)