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

15 lines
541 B
Python
Raw Normal View History

from lnx.logicnode.lnx_nodes import *
class AroundNavigableLocationNode(LnxLogicTreeNode):
"""A random around a navigable location in the navmesh."""
bl_idname = 'LNAroundNavigableLocationNode'
bl_label = 'Around NavMesh Location'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxStringSocket', 'NavMeshId', default_value = 'NavMesh')
self.add_input('LnxVectorSocket', 'Position')
self.add_input('LnxFloatSocket', 'Radius')
self.add_output('LnxVectorSocket', 'Location')