Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/intro/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ The ``PinJoint`` methode takes 2 bodies and their local positions as argument.
We place the static body ``b0``'s anchor at (200, 200) and leave the dynamic ``body`` at its default anchor
of (0, 0). This creates a pin between static point (200, 200) and dynamic point (100, 100)::

joint = pymunk.constraint.PinJoint(b0, body, (200, 200))
joint = pymunk.constraints.PinJoint(b0, body, (200, 200))

Due to gravity, the pendulum starts swinging.

Expand All @@ -318,4 +318,4 @@ using a series of swinging spheres.

.. image:: intro9.png

:download:`intro9.py<intro9.py>`
:download:`intro9.py<intro9.py>`
4 changes: 2 additions & 2 deletions docs/intro/intro7.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
body.position = (100, 100)
circle = pymunk.Circle(body, radius=20)

joint = pymunk.constraint.PinJoint(b0, body, (200, 200))
joint = pymunk.constraints.PinJoint(b0, body, (200, 200))
space.add(body, circle, joint)

App().run()
App().run()
6 changes: 3 additions & 3 deletions docs/intro/intro8.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
c2.elasticity = 0.999
space.add(b2, c2)

j1 = pymunk.constraint.PinJoint(b0, b1, (200, 200))
j2 = pymunk.constraint.PinJoint(b0, b2, (240, 200))
j1 = pymunk.constraints.PinJoint(b0, b1, (200, 200))
j2 = pymunk.constraints.PinJoint(b0, b2, (240, 200))
space.add(j1, j2)

App().run()
App().run()
4 changes: 2 additions & 2 deletions docs/intro/intro9.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
body.position = 50, 200
shape = pymunk.Circle(body, radius=20)
shape.elasticity = 0.999
joint = pymunk.constraint.PinJoint(b0, body, (200+i*40, 200))
joint = pymunk.constraints.PinJoint(b0, body, (200+i*40, 200))
space.add(body, shape, joint)

App().run()
App().run()