Skip to content

Commit b408692

Browse files
improved documentation.
1 parent b478750 commit b408692

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+680
-146
lines changed

README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ nice 2d physics library Chipmunk.
1010
This release is based on the latest pymunk release (3.0.0),
1111
using chipmunk 6.1.1 (source included)
1212

13-
:Homepage: http://code.google.com/p/pymunk/
13+
:Homepage: http://pymunk.org
1414
:Forum: http://chipmunk-physics.net/forum/
1515
1616

THANKS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ BIG THANKS TO (in no order):
99
- mr Chipmunk himself, Scott Lembcke! (Chipmunk)
1010

1111

12-
and everyone else that have conrtibuted in any way.
12+
and everyone else that have contributed in any way.
1313

1414
(are you missing? contact me add I will add you)
1515

1.06 KB
Binary file not shown.
104 Bytes
Binary file not shown.

docs/html/.doctrees/news.doctree

343 Bytes
Binary file not shown.
2.75 KB
Binary file not shown.

docs/html/.doctrees/pymunk.doctree

2.17 KB
Binary file not shown.
997 Bytes
Binary file not shown.
1 KB
Binary file not shown.
4.55 KB
Binary file not shown.
41 Bytes
Binary file not shown.

docs/html/.doctrees/readme.doctree

-45 Bytes
Binary file not shown.
1.17 KB
Loading

docs/html/_modules/index.html

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ <h3>Navigation</h3>
3838
<li class="right" >
3939
<a href="../py-modindex.html" title="Python Module Index"
4040
>modules</a> |</li>
41-
<li><a href="../index.html">pymunk 3.0.0 documentation</a> &raquo;</li>
41+
42+
<li><a href="../index.html">pymunk 3.0.0 documentation</a> &raquo;</li>
43+
44+
<script type="text/javascript" src='_static/pymunk.js'></script>
45+
46+
4247
</ul>
4348
</div>
4449

@@ -68,7 +73,7 @@ <h3><a href="../index.html">Table Of Contents</a></h3>
6873
<ul>
6974
<li class="toctree-l1"><a class="reference internal" href="../readme.html">Readme</a></li>
7075
<li class="toctree-l1"><a class="reference internal" href="../news.html">News</a></li>
71-
<li class="toctree-l1"><a class="reference internal" href="../installation.html">Download &amp; Installation</a></li>
76+
<li class="toctree-l1"><a class="reference internal" href="../installation.html">Installation</a></li>
7277
<li class="toctree-l1"><a class="reference internal" href="../pymunk.html">API Reference</a></li>
7378
<li class="toctree-l1"><a class="reference internal" href="../examples.html">Examples</a></li>
7479
<li class="toctree-l1"><a class="reference internal" href="../tutorials.html">Tutorials</a></li>
@@ -104,7 +109,12 @@ <h3>Navigation</h3>
104109
<li class="right" >
105110
<a href="../py-modindex.html" title="Python Module Index"
106111
>modules</a> |</li>
107-
<li><a href="../index.html">pymunk 3.0.0 documentation</a> &raquo;</li>
112+
113+
<li><a href="../index.html">pymunk 3.0.0 documentation</a> &raquo;</li>
114+
115+
<script type="text/javascript" src='_static/pymunk.js'></script>
116+
117+
108118
</ul>
109119
</div>
110120
<div class="footer">

docs/html/_modules/pymunk.html

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ <h3>Navigation</h3>
3939
<li class="right" >
4040
<a href="../py-modindex.html" title="Python Module Index"
4141
>modules</a> |</li>
42+
4243
<li><a href="../index.html">pymunk 3.0.0 documentation</a> &raquo;</li>
44+
45+
<script type="text/javascript" src='_static/pymunk.js'></script>
46+
47+
4348
<li><a href="index.html" accesskey="U">Module code</a> &raquo;</li>
4449
</ul>
4550
</div>
@@ -77,7 +82,17 @@ <h1>Source code for pymunk</h1><pre>
7782
pymunk is a easy-to-use pythonic 2d physics library that can be used whenever
7883
you need 2d rigid body physics from Python.
7984

80-
Homepage: http://code.google.com/p/pymunk/
85+
Homepage: http://pymunk.org
86+
87+
This is the main containing module of pymunk. It contains among other things
88+
the very central Space, Body and Shape classes.
89+
90+
When you import this module it will automatically load the chipmunk library
91+
file. As long as you haven't turned off the debug mode a print will show
92+
exactly which Chipmunk library file it loaded. For example::
93+
94+
&gt;&gt;&gt; import pymunk
95+
Loading chipmunk for Windows (32bit) [C:\code\pymunk\\trunk\pymunk\chipmunk.dll]
8196

8297
"""
8398
__version__ = "$Id: __init__.py 431 2012-08-27 22:03:19Z [email protected] $"
@@ -1632,7 +1647,7 @@ <h3><a href="../index.html">Table Of Contents</a></h3>
16321647
<ul>
16331648
<li class="toctree-l1"><a class="reference internal" href="../readme.html">Readme</a></li>
16341649
<li class="toctree-l1"><a class="reference internal" href="../news.html">News</a></li>
1635-
<li class="toctree-l1"><a class="reference internal" href="../installation.html">Download &amp; Installation</a></li>
1650+
<li class="toctree-l1"><a class="reference internal" href="../installation.html">Installation</a></li>
16361651
<li class="toctree-l1"><a class="reference internal" href="../pymunk.html">API Reference</a></li>
16371652
<li class="toctree-l1"><a class="reference internal" href="../examples.html">Examples</a></li>
16381653
<li class="toctree-l1"><a class="reference internal" href="../tutorials.html">Tutorials</a></li>
@@ -1668,7 +1683,12 @@ <h3>Navigation</h3>
16681683
<li class="right" >
16691684
<a href="../py-modindex.html" title="Python Module Index"
16701685
>modules</a> |</li>
1686+
16711687
<li><a href="../index.html">pymunk 3.0.0 documentation</a> &raquo;</li>
1688+
1689+
<script type="text/javascript" src='_static/pymunk.js'></script>
1690+
1691+
16721692
<li><a href="index.html" >Module code</a> &raquo;</li>
16731693
</ul>
16741694
</div>

docs/html/_modules/pymunk/constraint.html

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ <h3>Navigation</h3>
3939
<li class="right" >
4040
<a href="../../py-modindex.html" title="Python Module Index"
4141
>modules</a> |</li>
42+
4243
<li><a href="../../index.html">pymunk 3.0.0 documentation</a> &raquo;</li>
44+
45+
<script type="text/javascript" src='_static/pymunk.js'></script>
46+
47+
4348
<li><a href="../index.html" >Module code</a> &raquo;</li>
4449
<li><a href="../pymunk.html" accesskey="U">pymunk</a> &raquo;</li>
4550
</ul>
@@ -79,8 +84,10 @@ <h1>Source code for pymunk.constraint</h1><pre>
7984
joints that allow bodies to pivot around each other like the bones in your
8085
body, or they can be more abstract like the gear joint or motors.
8186

82-
Chipmunk has a good overview of the different joints on youtube which works
83-
fine to showcase them in pymunk as well.
87+
This submodule contain all the constraints that are supported by pymunk.
88+
89+
Chipmunk has a good overview of the different constraint on youtube which
90+
works fine to showcase them in pymunk as well.
8491
http://www.youtube.com/watch?v=ZgJJZTS0aMM
8592

8693
.. raw:: html
@@ -530,7 +537,7 @@ <h3><a href="../../index.html">Table Of Contents</a></h3>
530537
<ul>
531538
<li class="toctree-l1"><a class="reference internal" href="../../readme.html">Readme</a></li>
532539
<li class="toctree-l1"><a class="reference internal" href="../../news.html">News</a></li>
533-
<li class="toctree-l1"><a class="reference internal" href="../../installation.html">Download &amp; Installation</a></li>
540+
<li class="toctree-l1"><a class="reference internal" href="../../installation.html">Installation</a></li>
534541
<li class="toctree-l1"><a class="reference internal" href="../../pymunk.html">API Reference</a></li>
535542
<li class="toctree-l1"><a class="reference internal" href="../../examples.html">Examples</a></li>
536543
<li class="toctree-l1"><a class="reference internal" href="../../tutorials.html">Tutorials</a></li>
@@ -566,7 +573,12 @@ <h3>Navigation</h3>
566573
<li class="right" >
567574
<a href="../../py-modindex.html" title="Python Module Index"
568575
>modules</a> |</li>
576+
569577
<li><a href="../../index.html">pymunk 3.0.0 documentation</a> &raquo;</li>
578+
579+
<script type="text/javascript" src='_static/pymunk.js'></script>
580+
581+
570582
<li><a href="../index.html" >Module code</a> &raquo;</li>
571583
<li><a href="../pymunk.html" >pymunk</a> &raquo;</li>
572584
</ul>

docs/html/_modules/pymunk/pygame_util.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ <h3>Navigation</h3>
3939
<li class="right" >
4040
<a href="../../py-modindex.html" title="Python Module Index"
4141
>modules</a> |</li>
42+
4243
<li><a href="../../index.html">pymunk 3.0.0 documentation</a> &raquo;</li>
44+
45+
<script type="text/javascript" src='_static/pymunk.js'></script>
46+
47+
4348
<li><a href="../index.html" >Module code</a> &raquo;</li>
4449
<li><a href="../pymunk.html" accesskey="U">pymunk</a> &raquo;</li>
4550
</ul>
@@ -74,7 +79,8 @@ <h1>Source code for pymunk.pygame_util</h1><pre>
7479
# SOFTWARE.
7580
# ----------------------------------------------------------------------------
7681

77-
"""Contains helper functions to help using pygame with pymunk.
82+
"""This submodule contains helper functions to help with quick prototyping
83+
using pymunk together with pygame.
7884

7985
Intended to help with debugging and prototyping, not for actual production use
8086
in a full application. The methods contained in this module is opinionated
@@ -299,7 +305,7 @@ <h3><a href="../../index.html">Table Of Contents</a></h3>
299305
<ul>
300306
<li class="toctree-l1"><a class="reference internal" href="../../readme.html">Readme</a></li>
301307
<li class="toctree-l1"><a class="reference internal" href="../../news.html">News</a></li>
302-
<li class="toctree-l1"><a class="reference internal" href="../../installation.html">Download &amp; Installation</a></li>
308+
<li class="toctree-l1"><a class="reference internal" href="../../installation.html">Installation</a></li>
303309
<li class="toctree-l1"><a class="reference internal" href="../../pymunk.html">API Reference</a></li>
304310
<li class="toctree-l1"><a class="reference internal" href="../../examples.html">Examples</a></li>
305311
<li class="toctree-l1"><a class="reference internal" href="../../tutorials.html">Tutorials</a></li>
@@ -335,7 +341,12 @@ <h3>Navigation</h3>
335341
<li class="right" >
336342
<a href="../../py-modindex.html" title="Python Module Index"
337343
>modules</a> |</li>
344+
338345
<li><a href="../../index.html">pymunk 3.0.0 documentation</a> &raquo;</li>
346+
347+
<script type="text/javascript" src='_static/pymunk.js'></script>
348+
349+
339350
<li><a href="../index.html" >Module code</a> &raquo;</li>
340351
<li><a href="../pymunk.html" >pymunk</a> &raquo;</li>
341352
</ul>

docs/html/_modules/pymunk/util.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ <h3>Navigation</h3>
3939
<li class="right" >
4040
<a href="../../py-modindex.html" title="Python Module Index"
4141
>modules</a> |</li>
42+
4243
<li><a href="../../index.html">pymunk 3.0.0 documentation</a> &raquo;</li>
44+
45+
<script type="text/javascript" src='_static/pymunk.js'></script>
46+
47+
4348
<li><a href="../index.html" >Module code</a> &raquo;</li>
4449
<li><a href="../pymunk.html" accesskey="U">pymunk</a> &raquo;</li>
4550
</ul>
@@ -74,7 +79,10 @@ <h1>Source code for pymunk.util</h1><pre>
7479
# SOFTWARE.
7580
# ----------------------------------------------------------------------------
7681

77-
"""Contains utility functions, mainly to help with polygon creation"""
82+
"""This submodule contains utility functions, mainly to help with polygon
83+
creation.
84+
85+
"""
7886
from __future__ import division
7987
__version__ = "$Id: util.py 324 2011-05-01 15:40:39Z [email protected] $"
8088
__docformat__ = "reStructuredText"
@@ -457,7 +465,7 @@ <h3><a href="../../index.html">Table Of Contents</a></h3>
457465
<ul>
458466
<li class="toctree-l1"><a class="reference internal" href="../../readme.html">Readme</a></li>
459467
<li class="toctree-l1"><a class="reference internal" href="../../news.html">News</a></li>
460-
<li class="toctree-l1"><a class="reference internal" href="../../installation.html">Download &amp; Installation</a></li>
468+
<li class="toctree-l1"><a class="reference internal" href="../../installation.html">Installation</a></li>
461469
<li class="toctree-l1"><a class="reference internal" href="../../pymunk.html">API Reference</a></li>
462470
<li class="toctree-l1"><a class="reference internal" href="../../examples.html">Examples</a></li>
463471
<li class="toctree-l1"><a class="reference internal" href="../../tutorials.html">Tutorials</a></li>
@@ -493,7 +501,12 @@ <h3>Navigation</h3>
493501
<li class="right" >
494502
<a href="../../py-modindex.html" title="Python Module Index"
495503
>modules</a> |</li>
504+
496505
<li><a href="../../index.html">pymunk 3.0.0 documentation</a> &raquo;</li>
506+
507+
<script type="text/javascript" src='_static/pymunk.js'></script>
508+
509+
497510
<li><a href="../index.html" >Module code</a> &raquo;</li>
498511
<li><a href="../pymunk.html" >pymunk</a> &raquo;</li>
499512
</ul>

docs/html/_modules/pymunk/vec2d.html

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ <h3>Navigation</h3>
3939
<li class="right" >
4040
<a href="../../py-modindex.html" title="Python Module Index"
4141
>modules</a> |</li>
42+
4243
<li><a href="../../index.html">pymunk 3.0.0 documentation</a> &raquo;</li>
44+
45+
<script type="text/javascript" src='_static/pymunk.js'></script>
46+
47+
4348
<li><a href="../index.html" >Module code</a> &raquo;</li>
4449
<li><a href="../pymunk.html" accesskey="U">pymunk</a> &raquo;</li>
4550
</ul>
@@ -74,6 +79,26 @@ <h1>Source code for pymunk.vec2d</h1><pre>
7479
# SOFTWARE.
7580
# ----------------------------------------------------------------------------
7681

82+
"""This module contain the Vec2d class that is used in all of pymunk when a
83+
vector is needed.
84+
85+
The Vec2d class is used almost everywhere in pymunk for 2d coordinates and
86+
vectors, for example to define gravity vector in a space. However, pymunk is
87+
smart enough to convert tuples or tuple like objects to Vec2ds so you usually
88+
do not need to explcitily do conversions if you happen to have a tuple::
89+
90+
&gt;&gt;&gt; import pymunk
91+
&gt;&gt;&gt; space = pymunk.Space()
92+
&gt;&gt;&gt; print space.gravity
93+
Vec2d(0.0, 0.0)
94+
&gt;&gt;&gt; space.gravity = 3,5
95+
&gt;&gt;&gt; print space.gravity
96+
Vec2d(3.0, 5.0)
97+
&gt;&gt;&gt; space.gravity += 2,6
98+
&gt;&gt;&gt; print space.gravity
99+
Vec2d(5.0, 11.0)
100+
101+
"""
77102
__version__ = "$Id: vec2d.py 418 2012-08-20 21:42:37Z [email protected] $"
78103
__docformat__ = "reStructuredText"
79104

@@ -86,9 +111,9 @@ <h1>Source code for pymunk.vec2d</h1><pre>
86111
__all__ = ["Vec2d"]
87112

88113
<div class="viewcode-block" id="Vec2d"><a class="viewcode-back" href="../../pymunk.vec2d.html#pymunk.vec2d.Vec2d">[docs]</a>class Vec2d(ctypes.Structure):
89-
"""2d vector class, supports vector and scalar operators,
90-
and also provides some high level functions
91-
"""
114+
"""2d vector class, supports vector and scalar operators, and also
115+
provides some high level functions.
116+
"""
92117
__slots__ = ['x', 'y']
93118

94119
@classmethod
@@ -547,7 +572,7 @@ <h3><a href="../../index.html">Table Of Contents</a></h3>
547572
<ul>
548573
<li class="toctree-l1"><a class="reference internal" href="../../readme.html">Readme</a></li>
549574
<li class="toctree-l1"><a class="reference internal" href="../../news.html">News</a></li>
550-
<li class="toctree-l1"><a class="reference internal" href="../../installation.html">Download &amp; Installation</a></li>
575+
<li class="toctree-l1"><a class="reference internal" href="../../installation.html">Installation</a></li>
551576
<li class="toctree-l1"><a class="reference internal" href="../../pymunk.html">API Reference</a></li>
552577
<li class="toctree-l1"><a class="reference internal" href="../../examples.html">Examples</a></li>
553578
<li class="toctree-l1"><a class="reference internal" href="../../tutorials.html">Tutorials</a></li>
@@ -583,7 +608,12 @@ <h3>Navigation</h3>
583608
<li class="right" >
584609
<a href="../../py-modindex.html" title="Python Module Index"
585610
>modules</a> |</li>
611+
586612
<li><a href="../../index.html">pymunk 3.0.0 documentation</a> &raquo;</li>
613+
614+
<script type="text/javascript" src='_static/pymunk.js'></script>
615+
616+
587617
<li><a href="../index.html" >Module code</a> &raquo;</li>
588618
<li><a href="../pymunk.html" >pymunk</a> &raquo;</li>
589619
</ul>

docs/html/_modules/pymunkoptions.html

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ <h3>Navigation</h3>
3939
<li class="right" >
4040
<a href="../py-modindex.html" title="Python Module Index"
4141
>modules</a> |</li>
42+
4243
<li><a href="../index.html">pymunk 3.0.0 documentation</a> &raquo;</li>
44+
45+
<script type="text/javascript" src='_static/pymunk.js'></script>
46+
47+
4348
<li><a href="index.html" accesskey="U">Module code</a> &raquo;</li>
4449
</ul>
4550
</div>
@@ -97,11 +102,6 @@ <h1>Source code for pymunkoptions</h1><pre>
97102

98103
#..continue to use pymunk as you normally do
99104

100-
The only available currently available option is
101-
debug
102-
103-
Print out useful debug information about where pymunk tries to load
104-
the chipmunk library from.
105105
"""
106106
</pre>
107107

@@ -117,7 +117,7 @@ <h3><a href="../index.html">Table Of Contents</a></h3>
117117
<ul>
118118
<li class="toctree-l1"><a class="reference internal" href="../readme.html">Readme</a></li>
119119
<li class="toctree-l1"><a class="reference internal" href="../news.html">News</a></li>
120-
<li class="toctree-l1"><a class="reference internal" href="../installation.html">Download &amp; Installation</a></li>
120+
<li class="toctree-l1"><a class="reference internal" href="../installation.html">Installation</a></li>
121121
<li class="toctree-l1"><a class="reference internal" href="../pymunk.html">API Reference</a></li>
122122
<li class="toctree-l1"><a class="reference internal" href="../examples.html">Examples</a></li>
123123
<li class="toctree-l1"><a class="reference internal" href="../tutorials.html">Tutorials</a></li>
@@ -153,7 +153,12 @@ <h3>Navigation</h3>
153153
<li class="right" >
154154
<a href="../py-modindex.html" title="Python Module Index"
155155
>modules</a> |</li>
156+
156157
<li><a href="../index.html">pymunk 3.0.0 documentation</a> &raquo;</li>
158+
159+
<script type="text/javascript" src='_static/pymunk.js'></script>
160+
161+
157162
<li><a href="index.html" >Module code</a> &raquo;</li>
158163
</ul>
159164
</div>

docs/html/_sources/installation.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
Download & Installation
2-
=======================
1+
Installation
2+
============
33

44
.. tip::
5-
You will find the latest version at http://code.google.com/p/pymunk/
5+
You will find the latest version at
6+
http://code.google.com/p/pymunk/downloads/list
67

78
pymunk does not need to be installed. However, you might need to compile the
89
chipmunk library that pymunk uses internally if a precompiled library was not

docs/html/_sources/news.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ Changes
3131
- New draw module to help with pygame prototyping
3232
- New pymunkoptions module to allow disable of debug
3333
- Tested on OSX, includes a compiled dylib file
34-
- Much extended and reworked documentation
34+
- Much extended and reworked documentation and homepage
3535
- Update of Chipmunk
3636
- Smaller API changes
3737
- General polish and cleanup
38+
- Shining new domain: pymunk.org
3839

3940
I hope you will like it!
4041

0 commit comments

Comments
 (0)