From 2c7015e753341830dc15ec71213ba0151363604f Mon Sep 17 00:00:00 2001 From: Danylo Hlynskyi Date: Tue, 29 Mar 2022 20:58:32 +0300 Subject: [PATCH] adapt to pymunk 6.2.1 Probably module name have changed in some previous release --- docs/intro/intro.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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`