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

Chipmunk abort #21

Open
ghost opened this issue Jan 1, 2018 · 3 comments
Open

Chipmunk abort #21

ghost opened this issue Jan 1, 2018 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 1, 2018

Hi, whilst running the code on Python 3.6.3 (Mac) whilst running python3 learning.py I was met with Aborting due to Chipmunk error: Mass must be positive and finite.
Failed condition: 0.0f <= mass && mass < INFINITY
Source:chipmunk_src/src/cpBody.c:257

Do you know how this might be fixed?

Thanks

@ghost ghost changed the title Invalid Syntax Chipmunk abort Jan 1, 2018
@sarkararpan710
Copy link

No idea actually, I have been having the same problem myself. Please let me know once fixed.
Thank You.

@ghost
Copy link
Author

ghost commented Mar 26, 2018

Running using UBUNTU fixed the problem for me.

@sajeevan16
Copy link

c_body = pymunk.Body(pymunk.inf, pymunk.inf)
c_body = pymunk.Body(body_type=pymunk.Body.STATIC)
In previous versions of Pymunk, you used inf to create static bodies. This has changed. See Body for details.

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

2 participants