-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME
65 lines (44 loc) · 1.86 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
=== 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