Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python physics library? [closed]

Are there any good up-to-date physics libraries for Python that are for Linux? I'm just getting into Python using PyGame, but PyGame's lack of a physics library isn't cool. I spent about two hours trying to find a good physics library but it's like trying to grab oil; I can't seem to do it.

I barely need a physics engine at all; all I want to do is program an object to 'jump' up and then fall back to the ground. There seems to be some simple collisions going on (which PyGame can handle, I think) but it's the actual jump calculation that's stumping me. If it turns out that there aren't any good ususable physics libraries, the problem seems simple enough that I might just try to find a basic acceleration equation and a gravity equation and try to apply those... I'd like to avoid having to do that, though.

Thanks for any help.

like image 585
Elliot Bonneville Avatar asked Jun 17 '11 03:06

Elliot Bonneville


People also ask

What is Pymunk in Python?

Pymunk is a easy-to-use pythonic 2d physics library that can be used whenever you need 2d rigid body physics from Python. Perfect when you need 2d physics in your game, demo or simulation! It is built on top of the very capable 2d physics library Chipmunk.

Which package helps in scientific applications of Python?

NumPy is the fundamental package for scientific computing with Python, adding support for large, multidimensional arrays and matrices, along with a large library of high-level mathematical functions to operate on these arrays.

What makes Python better than other libraries for NUMerical computation?

Robust Python with its dynamic data structures, efficient implementation of multi-dimensional arrays and matrices, Numpy assures accurate calculations with matrices and arrays. We need to import Numpy into memory to perform numerical operations.


1 Answers

Pymunk is another promising one that you might want to take a look at.

like image 149
CCC Avatar answered Oct 10 '22 18:10

CCC