armory/blender/arm/logicnode/navmesh/LN_get_agent_data.py
2021-09-03 20:59:49 +02:00

13 lines
426 B
Python

from arm.logicnode.arm_nodes import *
class GetAgentDataNode(ArmLogicTreeNode):
"""Gets the speed and turn duration of the agent"""
bl_idname = 'LNGetAgentDataNode'
bl_label = 'Get Agent Data'
arm_version = 1
def arm_init(self, context):
self.add_input('ArmNodeSocketObject', 'Object')
self.add_output('ArmFloatSocket', 'Speed')
self.add_output('ArmFloatSocket', 'Turn Duration')