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

22 lines
836 B
Python
Raw Normal View History

from lnx.logicnode.lnx_nodes import *
class GetCrowdDataNode(LnxLogicTreeNode):
"""Gets the speed and position of the crowd"""
bl_idname = 'LNGetCrowdDataNode'
bl_label = 'Get Crowd Data'
lnx_section = 'crowd'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketObject', 'Object')
self.add_output('LnxStringSocket', 'NavMeshId')
self.add_output('LnxVectorSocket', 'Speed')
self.add_output('LnxFloatSocket', 'Max Speed')
self.add_output('LnxFloatSocket', 'Max Acceleration')
self.add_output('LnxFloatSocket', 'Turn Speed')
self.add_output('LnxVectorSocket', 'Location')
self.add_output('LnxVectorSocket', 'Target Location')
self.add_output('LnxIntSocket', 'Id')
self.add_output('LnxNodeSocketArray', 'Path')