1asset toy_caterpillar "Plush caterpillar toy" complexity=3
2// a green plush caterpillar three squares long, built for the top view: three round segments along x,
3// each with a pale stitched ring, stubby feet poking out at the sides, and a big smiling head at +x
4// with two little bobble antennae. Under 18 cm tall
5let bodyC = lime
6let ringC = lime*1.16
7let footC = leafPaint
8let bobC = sunflower
9
10// three plush segments, tail to head; each wears a pale ring across its middle (roll=90 lays the
11// ball's y axis along -x, so the band is a ring across the body and local -x points down)
12ball seg x3 at=(-.05, .068, 0) row=(.17, 0, 0) roll=90 r=(.068-.004*(2-i), .108-.006*(2-i), .098-.006*(2-i)) bands=[.42:ringC .58:bodyC] color=bodyC segs=18 rings=11
13ball foot x2 on=seg at=(-.04, 0, .07) row=(0, .07, 0) r=(.026, .034, .032) color=footC segs=8 rings=5
14ball foot2 x2 on=seg at=(-.04, 0, -.07) row=(0, .07, 0) r=(.026, .034, .032) color=footC segs=8 rings=5
15ball tail at=(-.33, .045, 0) r=(.06, .045, .055) color=bodyC segs=10 rings=6
16
17// the head at +x, looking up at the player
18ball head at=(.302, .082, 0) yaw=90 r=(.118, .082, .118) color=bodyC segs=22 rings=12
19face look on=head eyes=round mouth=grin spacing=44 eyeY=56 mouthY=26 mouthW=.4 size=.3 detail=.6
20tube antenna on=head at=(.035, .052, -.045) mirror pts=[0,0,0 .03,.016,-.02 .058,.02,-.032] r=(.011, .008) smooth sides=6 color=footC
21ball bob on=antenna at=(.058, .02, -.032) r=.021 color=bobC segs=10 rings=6
22