{"behavior_tree":{"parameters":[{"type":"Float","name":"pedalCount","value":[6.0,0.0,0.0,0.0]},{"type":"Float","name":"pedalI","value":[0.0,0.0,0.0,0.0]},{"type":"Float","name":"baseAngle","value":[0.0,0.0,0.0,0.0]},{"type":"Float","name":"parentI","value":[-1.0,0.0,0.0,0.0]},{"type":"Float","name":"size","value":[30.0,0.0,0.0,0.0]}],"rootNode":{"name":"Start","position":[0.0,0.0],"type":"Decorator","childTreePath":"","children":[{"name":"Create Root","position":[0.0,0.0],"type":"Decorator","childTreePath":"","children":[{"name":"For Loop","position":[0.0,0.0],"type":"Decorator","childTreePath":"","children":[{"name":"Create Pedal","position":[0.0,0.0],"type":"ChildProcess","childTreePath":"grow_segments.json","onStart":"anglePerPedal = 30\nangleSpan = (pedalCount - 1) * 30\nprogress = pedalI / (pedalCount - 1)\nchild.baseAngle = baseAngle - angleSpan / 2 + pedalI * anglePerPedal\nchild.parentI = parentI\nchild.segmentCount = 1\nchild.targetDistance = size * (1 + 0.15 + 0.15 * cos(progress * 6.283))\nchild.newSegmentAngleSpan = 0\nchild.nodeType = 2","onUpdate":"","onDone":""}],"onStart":"","onUpdate":"","onDone":"if (pedalI < (pedalCount - 1)) {\n    result = Running\n    pedalI += 1\n}"}],"onStart":"if (parentI == -1) {\n    parentI = Stem.createNode(-1, 0)\n}","onUpdate":"","onDone":""}],"onStart":"","onUpdate":"","onDone":""}}}