Skip to content

Commit efdb58c

Browse files
authored
Merge pull request #75 from DerThorsten/main
hotfix rocket example
2 parents 44b235c + a653431 commit efdb58c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

content/pyolite/pyb2d/games/rocket.ipynb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
"\n",
213213
" def post_debug_draw(self):\n",
214214
" for planet, planet_def in self.planets.items():\n",
215-
"\n",
215+
" pos = planet.position\n",
216216
" self.debug_draw.draw_solid_circle(\n",
217217
" pos, planet_def[\"radius\"] + 0.1, axis=None, color=planet_def[\"color\"]\n",
218218
" )\n",
@@ -248,6 +248,14 @@
248248
"s.scale = 3\n",
249249
"tb = b2d.testbed.run(Rocket, backend=JupyterAsyncGui, gui_settings=s);"
250250
]
251+
},
252+
{
253+
"cell_type": "code",
254+
"execution_count": null,
255+
"id": "674c57c8-b5b1-45a9-b75e-5ddc487f7d9b",
256+
"metadata": {},
257+
"outputs": [],
258+
"source": []
251259
}
252260
],
253261
"metadata": {

0 commit comments

Comments
 (0)