summaryrefslogtreecommitdiff
path: root/examples/noc/test/fluid_resistance.script
blob: 4208882af6e235a86df83ec7495ff1823eb94c6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Four seconds: the movers have fallen into the liquid and slowed down;
# the first rests on the floor (360 minus its radius).
frames 240
expect movers[0].position[1] 350.94 ~0.01
expect movers[4].mass 1.0985 ~0.001
expect movers[4].velocity[1] 0.3603 ~0.001
# A click starts them over at the top with new masses, and they fall again.
click 320 180
expect movers[4].position[1] 0.1 ~0.001
expect movers[4].mass 2.3238 ~0.001
frames 80
expect movers[4].position[1] 229.95 ~0.01
screenshot .zig-cache/e2e/fluid_resistance.png