pysims
free_fall.py
speed
1x
starting
View
code
side panel
console
grid in meters
light theme
focus: canvas only (Esc)
wrap long lines
code size
−
14
+
Help
Reference
every name, one line each
Manual
the same API in full, with examples
Ctrl
+
Enter
run,
Esc
stop,
Ctrl
+
Shift
+
Enter
reset the scene,
Ctrl
+
S
save
Space
pause,
→
or
.
a step on,
←
or
,
a step back, outside the editor
stepping back walks the run already recorded; the simulation itself cannot rewind
a program that reads
sim.keys
takes the plain keys for itself
Ctrl
+
/
comment,
Ctrl
+
D
duplicate,
Ctrl
+
Shift
+
K
delete the line
Alt
+
↑
/
↓
move the line,
Ctrl
+
]
/
[
indent
Ctrl
+
F
find,
Ctrl
+
H
replace,
Ctrl
+
G
go to a line
Ctrl
+
Space
complete a name,
Ctrl
+
Q
fold
drag on the canvas: a ruler; double-click clears it
double-click a divider: fold that pane
an expanded graph: drag to pan, wheel to zoom,
Shift
or
Alt
for one axis, double-click to fit
# pysims: a ball falls. Press Run. from pysims import sim, Ball, Box sim.gravity = 9.8 floor = Box(x=0, y=-0.5, width=20, height=1, fixed=True, color="gray", name="floor") ball = Ball(x=0, y=5, radius=0.3, mass=1, bounce=0.8, color="orange", name="ball") while sim.running: sim.step()
−
+
fit
save
close
replay
console
clear