162 lines
3.1 KiB
Plaintext
162 lines
3.1 KiB
Plaintext
|
Tree("Root") {
|
||
|
Composite (Sequence) {
|
||
|
RunTree("a")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Tree("a") {
|
||
|
Composite (Sequence) {
|
||
|
SimpleController.SetRandomTarget (0, 0, 50)
|
||
|
Composite (Race) {
|
||
|
SimpleController.NearTarget (2)
|
||
|
SimpleController.RotateTowards (90)
|
||
|
SimpleController.MoveForward (2)
|
||
|
}
|
||
|
RunTree("b")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Tree("b") {
|
||
|
Composite (Sequence) {
|
||
|
SimpleController.SetRandomTarget (0, 0, 50)
|
||
|
Composite (Race) {
|
||
|
SimpleController.NearTarget (2)
|
||
|
SimpleController.RotateTowards (90)
|
||
|
SimpleController.MoveForward (2)
|
||
|
}
|
||
|
RunTree("c")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Tree("c") {
|
||
|
Composite (Sequence) {
|
||
|
SimpleController.SetRandomTarget (0, 0, 50)
|
||
|
Composite (Race) {
|
||
|
SimpleController.NearTarget (2)
|
||
|
SimpleController.RotateTowards (90)
|
||
|
SimpleController.MoveForward (2)
|
||
|
}
|
||
|
RunTree("d")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Tree("d") {
|
||
|
Composite (Sequence) {
|
||
|
SimpleController.SetRandomTarget (0, 0, 50)
|
||
|
Composite (Race) {
|
||
|
SimpleController.NearTarget (2)
|
||
|
SimpleController.RotateTowards (90)
|
||
|
SimpleController.MoveForward (2)
|
||
|
}
|
||
|
RunTree("e")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Tree("e") {
|
||
|
Composite (Sequence) {
|
||
|
SimpleController.SetRandomTarget (0, 0, 50)
|
||
|
Composite (Race) {
|
||
|
SimpleController.NearTarget (2)
|
||
|
SimpleController.RotateTowards (90)
|
||
|
SimpleController.MoveForward (2)
|
||
|
}
|
||
|
RunTree("f")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Tree("f") {
|
||
|
Composite (Sequence) {
|
||
|
SimpleController.SetRandomTarget (0, 0, 50)
|
||
|
Composite (Race) {
|
||
|
SimpleController.NearTarget (2)
|
||
|
SimpleController.RotateTowards (90)
|
||
|
SimpleController.MoveForward (2)
|
||
|
}
|
||
|
RunTree("g")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Tree("g") {
|
||
|
Composite (Sequence) {
|
||
|
SimpleController.SetRandomTarget (0, 0, 50)
|
||
|
Composite (Race) {
|
||
|
SimpleController.NearTarget (2)
|
||
|
SimpleController.RotateTowards (90)
|
||
|
SimpleController.MoveForward (2)
|
||
|
}
|
||
|
RunTree("h")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Tree("h") {
|
||
|
Composite (Sequence) {
|
||
|
SimpleController.SetRandomTarget (0, 0, 50)
|
||
|
Composite (Race) {
|
||
|
SimpleController.NearTarget (2)
|
||
|
SimpleController.RotateTowards (90)
|
||
|
SimpleController.MoveForward (2)
|
||
|
}
|
||
|
RunTree("i")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Tree("i") {
|
||
|
Composite (Sequence) {
|
||
|
SimpleController.SetRandomTarget (0, 0, 50)
|
||
|
Composite (Race) {
|
||
|
SimpleController.NearTarget (2)
|
||
|
SimpleController.RotateTowards (90)
|
||
|
SimpleController.MoveForward (2)
|
||
|
}
|
||
|
RunTree("j")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Tree("j") {
|
||
|
Composite (Sequence) {
|
||
|
SimpleController.SetRandomTarget (0, 0, 50)
|
||
|
Composite (Race) {
|
||
|
SimpleController.NearTarget (2)
|
||
|
SimpleController.RotateTowards (90)
|
||
|
SimpleController.MoveForward (2)
|
||
|
}
|
||
|
RunTree("k")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Tree("k") {
|
||
|
Composite (Sequence) {
|
||
|
SimpleController.SetRandomTarget (0, 0, 50)
|
||
|
Composite (Race) {
|
||
|
SimpleController.NearTarget (2)
|
||
|
SimpleController.RotateTowards (90)
|
||
|
SimpleController.MoveForward (2)
|
||
|
}
|
||
|
RunTree("l")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Tree("l") {
|
||
|
Composite (Sequence) {
|
||
|
SimpleController.SetRandomTarget (0, 0, 50)
|
||
|
Composite (Race) {
|
||
|
SimpleController.NearTarget (2)
|
||
|
SimpleController.RotateTowards (90)
|
||
|
SimpleController.MoveForward (2)
|
||
|
}
|
||
|
RunTree("m")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Tree("m") {
|
||
|
Composite (Sequence) {
|
||
|
SimpleController.SetRandomTarget (0, 0, 50)
|
||
|
Composite (Race) {
|
||
|
SimpleController.NearTarget (2)
|
||
|
SimpleController.RotateTowards (90)
|
||
|
SimpleController.MoveForward (2)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|