
Hi, This looks great, and I hadn't seen pymunk before. I tried a quick simulation, and it's working: import pyphysicssandbox as ps ps.window("ball", 600, 400) b1 = ps.ball((100, 0), 30) ps.run() How do I give the ball a horizontal velocity? Eric On Tue, Dec 13, 2016 at 5:46 AM, Jay Shaffstall <jshaffstall@gmail.com> wrote:
I'm very pleased to announce the general release of a Python physics sandbox targeting students in intro programming courses. We teach Python as a first language here and a physics simulation has long been one of the students' favorite labs. But the simulation we were using, while easy to use, was pretty limited and only worked in one particular IDE.
So I wrote PyPhysicsSandbox, a thin wrapper around pymunk. The sandbox allows students to construct more sophisticated combinations of shapes and joints and interactivity with the user. It should also work in any environment that allows installing libraries to Python using pip.
The code lives here: https://github.com/jshaffstall/PyPhysicsSandbox
It's freely available for use in your own classes.
Jay
_______________________________________________ Edu-sig mailing list Edu-sig@python.org https://mail.python.org/mailman/listinfo/edu-sig