mirror of
https://github.com/gongxh0901/kunpocc-behaviortree.git
synced 2025-12-26 16:48:56 +00:00
行为树详细介绍的文档
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "bt-tree1",
|
||||
"description": "这是一个描述",
|
||||
"description": "行为树描述\n",
|
||||
"nodes": [
|
||||
{
|
||||
"id": "1759488688188_qejfcso50",
|
||||
@@ -8,47 +8,24 @@
|
||||
"name": "选择节点",
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": -200
|
||||
"y": -220
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1759488707759_2bmdm1fqt",
|
||||
"1759488725107_v8u160t95",
|
||||
"1759488737637_axpz9aqaz",
|
||||
"1759482034741_cf3mqaqdj",
|
||||
"1758190139303_t5o7vv3ak"
|
||||
"1759488707759_2bmdm1fqt",
|
||||
"1759482034741_cf3mqaqdj"
|
||||
],
|
||||
"alias": "根选择节点"
|
||||
},
|
||||
{
|
||||
"id": "1758190139303_t5o7vv3ak",
|
||||
"className": "BTTestNode",
|
||||
"name": "嵌套数据测试节点",
|
||||
"position": {
|
||||
"x": 440,
|
||||
"y": -80
|
||||
},
|
||||
"parameters": {
|
||||
"position": {
|
||||
"x": 10,
|
||||
"y": 20
|
||||
},
|
||||
"configs": [
|
||||
{
|
||||
"name": "hahaa",
|
||||
"value": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"children": []
|
||||
"alias": "根节点"
|
||||
},
|
||||
{
|
||||
"id": "1759479318405_bptb8ltcp",
|
||||
"className": "LimitTime",
|
||||
"name": "时间限制器",
|
||||
"position": {
|
||||
"x": -120,
|
||||
"y": 40
|
||||
"x": -60,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {
|
||||
"_max": 2
|
||||
@@ -62,8 +39,8 @@
|
||||
"className": "LimitTime",
|
||||
"name": "时间限制器",
|
||||
"position": {
|
||||
"x": -400,
|
||||
"y": 40
|
||||
"x": -340,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {
|
||||
"_max": 2
|
||||
@@ -77,8 +54,8 @@
|
||||
"className": "BTAnimation",
|
||||
"name": "播放动画",
|
||||
"position": {
|
||||
"x": -400,
|
||||
"y": 160
|
||||
"x": -340,
|
||||
"y": 40
|
||||
},
|
||||
"parameters": {
|
||||
"_name": "walk",
|
||||
@@ -91,22 +68,23 @@
|
||||
"className": "BTAnimation",
|
||||
"name": "播放动画",
|
||||
"position": {
|
||||
"x": -120,
|
||||
"y": 160
|
||||
"x": -60,
|
||||
"y": 40
|
||||
},
|
||||
"parameters": {
|
||||
"_name": "run",
|
||||
"_loop": true
|
||||
},
|
||||
"children": []
|
||||
"children": [],
|
||||
"alias": "奔跑动画"
|
||||
},
|
||||
{
|
||||
"id": "1758089757615_dp9tw9ka1",
|
||||
"className": "BTAnimation",
|
||||
"name": "播放动画",
|
||||
"position": {
|
||||
"x": 160,
|
||||
"y": 40
|
||||
"x": 220,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {
|
||||
"_name": "jump",
|
||||
@@ -119,8 +97,8 @@
|
||||
"className": "BTAnimation",
|
||||
"name": "播放动画",
|
||||
"position": {
|
||||
"x": 300,
|
||||
"y": 40
|
||||
"x": 360,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {
|
||||
"_name": "idle",
|
||||
@@ -133,8 +111,8 @@
|
||||
"className": "BTConditionRandom",
|
||||
"name": "随机条件节点",
|
||||
"position": {
|
||||
"x": -540,
|
||||
"y": 40
|
||||
"x": -480,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {
|
||||
"_value": 0.3
|
||||
@@ -146,8 +124,8 @@
|
||||
"className": "BTConditionRandom",
|
||||
"name": "随机条件节点",
|
||||
"position": {
|
||||
"x": -260,
|
||||
"y": 40
|
||||
"x": -200,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {
|
||||
"_value": 0.4
|
||||
@@ -159,8 +137,8 @@
|
||||
"className": "BTConditionRandom",
|
||||
"name": "随机条件节点",
|
||||
"position": {
|
||||
"x": 20,
|
||||
"y": 40
|
||||
"x": 80,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {
|
||||
"_value": 0.3
|
||||
@@ -172,8 +150,8 @@
|
||||
"className": "LimitTime",
|
||||
"name": "时间限制器",
|
||||
"position": {
|
||||
"x": 300,
|
||||
"y": -80
|
||||
"x": 360,
|
||||
"y": -140
|
||||
},
|
||||
"parameters": {
|
||||
"_max": 2
|
||||
@@ -188,45 +166,45 @@
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -480,
|
||||
"y": -80
|
||||
"x": -400,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1759481172259_xou25wj2n",
|
||||
"1759479295671_jflit2ek8"
|
||||
],
|
||||
"alias": "行走动画分支"
|
||||
"alias": "行走顺序节点"
|
||||
},
|
||||
{
|
||||
"id": "1759488725107_v8u160t95",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -200,
|
||||
"y": -80
|
||||
"x": -120,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1759481282875_5orqavi5y",
|
||||
"1759479318405_bptb8ltcp"
|
||||
],
|
||||
"alias": "奔跑动画"
|
||||
"alias": "奔跑顺序节点"
|
||||
},
|
||||
{
|
||||
"id": "1759488737637_axpz9aqaz",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": 80,
|
||||
"y": -80
|
||||
"x": 160,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1759481307863_ja6q4q9bz",
|
||||
"1758089757615_dp9tw9ka1"
|
||||
],
|
||||
"alias": "跳跃动画分支"
|
||||
"alias": "跳跃顺序节点"
|
||||
}
|
||||
],
|
||||
"connections": [
|
||||
@@ -320,18 +298,11 @@
|
||||
"targetNodeId": "1758089757615_dp9tw9ka1",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758204108181_90iaioyvg",
|
||||
"sourceNodeId": "1759488688188_qejfcso50",
|
||||
"targetNodeId": "1758190139303_t5o7vv3ak",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
}
|
||||
],
|
||||
"canvasScale": 1.0006385665653545,
|
||||
"canvasScale": 1.25,
|
||||
"canvasOffset": {
|
||||
"x": 584.9936143343465,
|
||||
"y": 498.99074078480237
|
||||
"x": 723,
|
||||
"y": 600.875
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user