Pendulum blade · celworld
seed

Pendulum blade

pendulum_blade v1Agent-madec4
Open in Playground

v1 cost

$0.823est.

Agent-made: its share of a Claude Code session, priced as API-equivalent Opus 5.5.

Output share
2.3k
Time share
78s
The agent session
All 1 version$0.823

Budget

c4 · 31 lines
Shapes32 / 70
Triangles4,188 / 6,000
Draw calls2 / 4
States
None: it rests
Used in
Made
1asset pendulum_blade "Pendulum blade" complexity=4
2// a corridor trap: a heavy timber gantry with iron brackets straddles the passage, and from its
3// beam a long iron arm swings a huge crescent blade side to side, a hair above the floor. A cog
4// on the pivot turns with it, a skull rides the blade's hub. Fits a 4 m passage; it faces +z.
5let W = 1.62
6let woodC = walnut:2|oak|redwood
7let ironC = iron:3|inkDark
8let edgeC = silver:2|steel|white
9
10// the gantry: two posts on stone feet, a beam, corner braces
11box foot at=(W, 0, 0) mirror size=(.5, .3, .5) round=.06 bev=2 color=greystone
12box post on=foot at=(0, .25, 0) size=(.3, 3.3, .3) round=.05 bev=2 stripes=[woodC woodC*.85] panels=3 color=woodC
13box beam at=(0, 3.45, 0) size=(2*W+.5, .34, .36) round=.06 bev=2 stripes=[woodC woodC*.85] panels=8 color=woodC
14rod brace on=post at=(-.12, 2.6, 0) to=(-.65, .7, 0) r=.07 sides=10 color=woodC
15box bracket on=post at=(0, 3.05, 0) size=(.36, .3, .4) round=.03 bev=2 color=ironC
16ball bolt x2 on=bracket at=(0, .15, .2) row=(.2, 0, 0) r=.035 color=ironC*1.4 segs=6 rings=4
17
18// the pivot, its cog and the swinging arm
19cyl hubPlate on=beam at=(0, .17, .17) rot=(90, 0, 0) h=.05 r=.3 color=ironC segs=20
20cyl cog on=beam at=(0, .17, .21) rot=(90, 0, 0) h=.08 r=.17 color=brass segs=14 joint
21cone tooth x10 on=cog ring at=(.17, .04, 0) rot=(0, 0, -90) h=.08 r=.05 color=brass segs=4
22ball pivot on=beam at=(0, .17, .33) r=.11 color=brass segs=12 rings=8 joint
23rod arm on=pivot at=(0, 0, 0) to=(0, -2.62, 0) r=.06 sides=12 color=ironC
24ball hub on=arm at=end r=.15 color=ironC segs=14 rings=9
25ball skull on=hub at=(0, 0, .1) r=(.12, .11, .1) color=cream segs=12 rings=8
26ball socket on=skull at=(.045, .02, .08) mirror r=(.032, .036, .025) color=inkDark ink=none segs=6 rings=4
27slab blade on=hub at=(0, .12, -.03) pts=[-.7,-.2 -.48,-.55 0,-.72 .48,-.55 .7,-.2 .5,0 .32,-.24 0,-.34 -.32,-.24 -.5,0] t=.07 round=.02 color=ironC edge=edgeC
28
29// the blade swings across the passage, the cog turns with it
30anim pivot rz sin amp=58 hz=.42
31anim cog ry sin amp=58 hz=.42
32