mirror of
https://github.com/gongxh0901/kunpocc-behaviortree.git
synced 2025-12-26 16:48:56 +00:00
demo逻辑调整
This commit is contained in:
@@ -1,45 +1,132 @@
|
||||
{
|
||||
"bt-tree1": [
|
||||
{
|
||||
"id": "1759472794685_3awlwerqg",
|
||||
"className": "MemSelector",
|
||||
"id": "1759488688188_qejfcso50",
|
||||
"className": "Selector",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1759472800995_k3q8rx02h",
|
||||
"1759472799864_nait7thja",
|
||||
"1759472798713_ay9jxznr4",
|
||||
"1759472797759_gu3y8p1um"
|
||||
"1759488707759_2bmdm1fqt",
|
||||
"1759488725107_v8u160t95",
|
||||
"1759488737637_axpz9aqaz",
|
||||
"1759482034741_cf3mqaqdj"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1759472797759_gu3y8p1um",
|
||||
"className": "Inverter",
|
||||
"parameters": {},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1759472798713_ay9jxznr4",
|
||||
"id": "1759479318405_bptb8ltcp",
|
||||
"className": "LimitTime",
|
||||
"parameters": {
|
||||
"_max": 1
|
||||
"_max": 2
|
||||
},
|
||||
"children": [
|
||||
"1758089736854_t55n54hkh"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1759479295671_jflit2ek8",
|
||||
"className": "LimitTime",
|
||||
"parameters": {
|
||||
"_max": 2
|
||||
},
|
||||
"children": [
|
||||
"1758089659917_vjumiu9hy"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758089659917_vjumiu9hy",
|
||||
"className": "BTAnimation",
|
||||
"parameters": {
|
||||
"_name": "walk",
|
||||
"_loop": true
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1759472799864_nait7thja",
|
||||
"className": "LimitTicks",
|
||||
"id": "1758089736854_t55n54hkh",
|
||||
"className": "BTAnimation",
|
||||
"parameters": {
|
||||
"_max": 1
|
||||
"_name": "run",
|
||||
"_loop": true
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1759472800995_k3q8rx02h",
|
||||
"className": "Repeat",
|
||||
"id": "1758089757615_dp9tw9ka1",
|
||||
"className": "BTAnimation",
|
||||
"parameters": {
|
||||
"_max": 1
|
||||
"_name": "jump",
|
||||
"_loop": false
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1759478407706_w30m4btux",
|
||||
"className": "BTAnimation",
|
||||
"parameters": {
|
||||
"_name": "idle",
|
||||
"_loop": true
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1759481172259_xou25wj2n",
|
||||
"className": "BTConditionRandom",
|
||||
"parameters": {
|
||||
"_value": 0.3
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1759481282875_5orqavi5y",
|
||||
"className": "BTConditionRandom",
|
||||
"parameters": {
|
||||
"_value": 0.4
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1759481307863_ja6q4q9bz",
|
||||
"className": "BTConditionRandom",
|
||||
"parameters": {
|
||||
"_value": 0.3
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1759482034741_cf3mqaqdj",
|
||||
"className": "LimitTime",
|
||||
"parameters": {
|
||||
"_max": 3
|
||||
},
|
||||
"children": [
|
||||
"1759478407706_w30m4btux"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1759488707759_2bmdm1fqt",
|
||||
"className": "Sequence",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1759481172259_xou25wj2n",
|
||||
"1759479295671_jflit2ek8"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1759488725107_v8u160t95",
|
||||
"className": "Sequence",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1759481282875_5orqavi5y",
|
||||
"1759479318405_bptb8ltcp"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1759488737637_axpz9aqaz",
|
||||
"className": "Sequence",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1759481307863_ja6q4q9bz",
|
||||
"1758089757615_dp9tw9ka1"
|
||||
]
|
||||
}
|
||||
],
|
||||
"bt-tree2": [
|
||||
@@ -48,122 +135,14 @@
|
||||
"className": "MemSequence",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758005578560_0b1kuefo0",
|
||||
"node_1757926547913_xilg11ei7",
|
||||
"1757931183149_eeuq44vs0"
|
||||
"1758090634327_mf36nwkdt"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "node_1757926547913_xilg11ei7",
|
||||
"className": "MemSelector",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"node_1757926550855_1hqcmi43w",
|
||||
"node_1757926555912_18vbde5fp",
|
||||
"1757930584200_cf9rez1qg",
|
||||
"1757931171553_a3afal936"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "node_1757926550855_1hqcmi43w",
|
||||
"className": "WaitTicks",
|
||||
"parameters": {
|
||||
"_max": 2
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "node_1757926555912_18vbde5fp",
|
||||
"className": "WaitTime",
|
||||
"parameters": {
|
||||
"_max": 1
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1757930584200_cf9rez1qg",
|
||||
"className": "Inverter",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1757930606484_dbsf9bsu2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1757930606484_dbsf9bsu2",
|
||||
"className": "WaitTicks",
|
||||
"parameters": {
|
||||
"_max": 0
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1757931171553_a3afal936",
|
||||
"className": "WaitTicks",
|
||||
"parameters": {
|
||||
"_max": 0
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1757931183149_eeuq44vs0",
|
||||
"className": "LimitTicks",
|
||||
"parameters": {
|
||||
"_max": 1
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1758005570308_u6yo43u3b",
|
||||
"className": "MemSelector",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758005574101_v4xhs2jo8"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758005572265_dl9lxnrki",
|
||||
"className": "MemSequence",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758005575213_obgfw5q7p"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758005574101_v4xhs2jo8",
|
||||
"id": "1758090634327_mf36nwkdt",
|
||||
"className": "Selector",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758005576340_c8xf5bdhp"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758005575213_obgfw5q7p",
|
||||
"className": "RandomSelector",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758005577367_tw24xyxop"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758005576340_c8xf5bdhp",
|
||||
"className": "Sequence",
|
||||
"parameters": {},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1758005577367_tw24xyxop",
|
||||
"className": "Parallel",
|
||||
"parameters": {},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1758005578560_0b1kuefo0",
|
||||
"className": "ParallelAnySuccess",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758005570308_u6yo43u3b",
|
||||
"1758005572265_dl9lxnrki"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user