Files
LNXSDK/leenkx/blender/lnx/logicnode/navmesh/LN_pick_navmesh_location.py

15 lines
485 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class PickLocationNode(LnxLogicTreeNode):
"""Pick a location on the given NavMesh using screen coordinates."""
2025-01-22 16:18:30 +01:00
bl_idname = 'LNPickLocationNode'
bl_label = 'Pick NavMesh Location'
lnx_version = 2
2025-01-22 16:18:30 +01:00
def lnx_init(self, context):
self.add_input('LnxNodeSocketObject', 'NavMesh')
self.add_input('LnxIntSocket', 'X')
self.add_input('LnxIntSocket', 'Y')
2025-01-22 16:18:30 +01:00
self.add_output('LnxVectorSocket', 'Location')