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

cpSpaceShapeQuery crashes when called with cpSegmentShape with NULL body #191

Open
maniek2332 opened this issue Mar 25, 2020 · 0 comments
Open

Comments

@maniek2332
Copy link

The issue is caused by the Segment-related collision functions. They call cpBodyGetRotation() without checking if shape.body is not NULL.

Since cpSpaceShapeQuery suggests that using using cpShape with NULL body is ok, crashing for Segment shapes seems like a buggy behaviour.

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