Skip to content

dgym/pybullet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

=== Quick build ===

wget http://bullet.googlecode.com/files/bullet-2.80-rev2531.zip
unzip bullet-2.80-rev2531.zip
cd bullet-2.80-rev2531
cmake . -G "Unix Makefiles"
sed -i -e 's/CMAKE_CXX_FLAGS:STRING=/\0-fPIC /' CMakeCache.txt
sed -i -e "s#/usr/local#$PWD/install#" CMakeCache.txt
make install
cd ..

python setup.py build_ext --include-dirs ./bullet-2.80-rev2531/install/include/bullet --library-dirs ./bullet-2.80-rev2531/install/lib

The only file you need is bullet.so (e.g. build/lib.linux-x86_64-2.7/bullet/bullet.so) which should be copied to
the game's lib dir.






About
=====
PyBullet is a Python wrapper of the Bullet Physics library.

Build
=====
Building PyBullet requires Bullet Physics headers and libraries.  If these are
in the default search path on your platform, then a simple distutils build
command should succeed:

    $ python setup.py build

If they are elsewhere, you can specify their location with the --include-dirs
and --library-dirs command line options:

    $ python setup.py build_ext --include-dirs /path/to/includes \
                                --library-dirs /path/to/libraries

Install
=======
You can install PyBullet using the normal distutils install command:

    $ python setup.py install

Documentation
=============
To learn how to use PyBullet, there are several resources available:

  - The Python API documentation for the bullet package
  - The programs in the PyBullet demos/ directory

PyBullet attempts to be a very thin wrapper around the Bullet Physics C++ API.
This means that much of the Bullet Physics documentation is useful in learning
and understanding PyBullet:

  - The Bullet Physics API documentation:
      http://bulletphysics.com/Bullet/BulletFull/

  - The Bullet Physics User Manual:
      http://bulletphysics.com/ftp/pub/test/physics/Bullet_User_Manual.pdf

Bugs
====
Please report bugs at https://bugs.launchpad.net/pybullet