diff --git a/docs/intro/intro.rst b/docs/intro/intro.rst index 080d32f..81df3c7 100644 --- a/docs/intro/intro.rst +++ b/docs/intro/intro.rst @@ -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. @@ -318,4 +318,4 @@ using a series of swinging spheres. .. image:: intro9.png -:download:`intro9.py` \ No newline at end of file +:download:`intro9.py` diff --git a/docs/intro/intro7.py b/docs/intro/intro7.py index 3d2fa0c..abe43d9 100644 --- a/docs/intro/intro7.py +++ b/docs/intro/intro7.py @@ -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() \ No newline at end of file +App().run() diff --git a/docs/intro/intro8.py b/docs/intro/intro8.py index 5ad9538..af47f8f 100644 --- a/docs/intro/intro8.py +++ b/docs/intro/intro8.py @@ -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() \ No newline at end of file +App().run() diff --git a/docs/intro/intro9.py b/docs/intro/intro9.py index 9210fe5..1d558dc 100644 --- a/docs/intro/intro9.py +++ b/docs/intro/intro9.py @@ -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() \ No newline at end of file +App().run()