LNXSDK/leenkx/blender/lnx/logicnode/navmesh/LN_get_agent_data.py

13 lines
426 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class GetAgentDataNode(LnxLogicTreeNode):
"""Gets the speed and turn duration of the agent"""
bl_idname = 'LNGetAgentDataNode'
bl_label = 'Get Agent Data'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketObject', 'Object')
self.add_output('LnxFloatSocket', 'Speed')
self.add_output('LnxFloatSocket', 'Turn Duration')