forked from LeenkxTeam/LNXSDK
22 lines
836 B
Python
22 lines
836 B
Python
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')
|