Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

constraint --> constraints #4

Open
dudung opened this issue Jan 28, 2023 · 0 comments
Open

constraint --> constraints #4

dudung opened this issue Jan 28, 2023 · 0 comments

Comments

@dudung
Copy link

dudung commented Jan 28, 2023

I encounter a problem as executing intro7.py

AttributeError                            Traceback (most recent call last)
Input In [3], in <cell line: 10>()
      8 body.position = (350, 100)
      9 circle = pymunk.Circle(body, radius=20)
---> 10 joint = pymunk.constraint.PinJoint(space.static_body, body, (200, 200))
     12 space.add(body, circle, joint)
     14 App().run()

AttributeError: module 'pymunk' has no attribute 'constraint'

which I believe that the examples in introduction that containt

joint = pymunk.constraint.PinJoint()

should be corrected to

joint = pymunk.constraints.PinJoint()

as in pymunk/constraints, since it is missing the s.

The intro8.py and intro9.py must also be corrected.

I have submitted a pull request for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant