blob: 244be4477df199c963d15eb34d777c8987ae2258 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# Grab the bob where it starts (angle PI/4), drag it out to the left, let go.
down 444 154
expect dragging true
move 300 120
move 200 100
move 160 60
frames 2
expect dragging true
# The rod points at the pointer: (160, 60) from the pivot (320, 30).
expect angle -1.3854 ~0.001
up 160 60
expect dragging false
# Let go from rest: one step of gravity since.
expect angle_velocity 0.0022 ~0.0001
# It swings back from the left.
frames 40
expect angle 0.1588 ~0.001
screenshot .zig-cache/e2e/pendulum.png
|