Physics Sandbox

108 views
Skip to first unread message

Jay Shaffstall

unread,
Dec 12, 2016, 9:29:17 PM12/12/16
to thonny
I found Thonny while looking for an IDE to use with a physics sandbox I was writing.  The idea is to give intro programming students an easy to use 2d physics engine so they can create interesting simulations.   I've just released the first version of the sandbox.  It's completely free and installs nicely on Thonny using the system console.


With Thonny installed the Python 3.5 dependency is taken care of, so just open the system console and install using:  pip install pyPhysicsSandbox

Aivar Annamaa

unread,
Dec 13, 2016, 3:26:26 AM12/13/16
to tho...@googlegroups.com
Sounds cool!

Unfortunately I'm not able to run your first example at https://github.com/jshaffstall/PyPhysicsSandbox. Looks like import should be from "pyphysicssandbox" instead of "pyPhysicsSandbox". After changing this I got error about missing "py2d". I was able to install this with pip, but then I got error about missing "vecmath" and I don't know how to fix this.

Best regards
Aivar
--
You received this message because you are subscribed to the Google Groups "thonny" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thonny+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thonny/61035912-22a9-42fa-96a1-eff5277576e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Aivar Annamaa

unread,
Dec 13, 2016, 3:32:20 AM12/13/16
to thonny
There was mistake in my previous post -- "py2d" came with PyPhysicsSandbox but the error was about missing "py2d.Math".

A.


On Tuesday, December 13, 2016 at 10:26:26 AM UTC+2, Aivar Annamaa wrote:
Sounds cool!

Unfortunately I'm not able to run your first example at https://github.com/jshaffstall/PyPhysicsSandbox. Looks like import should be from "pyphysicssandbox" instead of "pyPhysicsSandbox". After changing this I got error about missing "py2d". I was able to install this with pip, but then I got error about missing "vecmath" and I don't know how to fix this.

Best regards
Aivar

On 13.12.2016 4:29, Jay Shaffstall wrote:
I found Thonny while looking for an IDE to use with a physics sandbox I was writing.  The idea is to give intro programming students an easy to use 2d physics engine so they can create interesting simulations.   I've just released the first version of the sandbox.  It's completely free and installs nicely on Thonny using the system console.


With Thonny installed the Python 3.5 dependency is taken care of, so just open the system console and install using:  pip install pyPhysicsSandbox
--
You received this message because you are subscribed to the Google Groups "thonny" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thonny+unsubscribe@googlegroups.com.

Jay Shaffstall

unread,
Dec 13, 2016, 8:52:04 AM12/13/16
to thonny
Looks like a problem with the setup.  I needed to specifically say I wanted py2d.Math installed, even thought it's inside py2d.  If you pip uninstall pyphysicssandbox and then reinstall, you should get the new version.  Not sure if you need to clear your pip cache or not first.

Thanks for the heads up!

Jay


On Tuesday, December 13, 2016 at 3:32:20 AM UTC-5, Aivar Annamaa wrote:
There was mistake in my previous post -- "py2d" came with PyPhysicsSandbox but the error was about missing "py2d.Math".

A.

On Tuesday, December 13, 2016 at 10:26:26 AM UTC+2, Aivar Annamaa wrote:
Sounds cool!

Unfortunately I'm not able to run your first example at https://github.com/jshaffstall/PyPhysicsSandbox. Looks like import should be from "pyphysicssandbox" instead of "pyPhysicsSandbox". After changing this I got error about missing "py2d". I was able to install this with pip, but then I got error about missing "vecmath" and I don't know how to fix this.

Best regards
Aivar

On 13.12.2016 4:29, Jay Shaffstall wrote:
I found Thonny while looking for an IDE to use with a physics sandbox I was writing.  The idea is to give intro programming students an easy to use 2d physics engine so they can create interesting simulations.   I've just released the first version of the sandbox.  It's completely free and installs nicely on Thonny using the system console.


With Thonny installed the Python 3.5 dependency is taken care of, so just open the system console and install using:  pip install pyPhysicsSandbox
--
You received this message because you are subscribed to the Google Groups "thonny" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thonny+un...@googlegroups.com.

Aivar Annamaa

unread,
Dec 13, 2016, 9:20:50 AM12/13/16
to tho...@googlegroups.com
Now I got it running. Good work! You should consider promoting it in Python Edu SIG (https://mail.python.org/mailman/listinfo/edu-sig). But first you should update another thing in the README example -- looks like "poly" has to be renamed to "polygon" ;)

best regards,
Aivar

Jay Shaffstall

unread,
Dec 13, 2016, 9:34:54 AM12/13/16
to thonny
Thanks for that catch, too!  I updated that and will post on the sig.  

Jay
Reply all
Reply to author
Forward
0 new messages