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

Update Hello World #207

Merged
merged 3 commits into from
Dec 6, 2024
Merged

Conversation

apkatsikas
Copy link
Contributor

@apkatsikas apkatsikas commented Dec 5, 2024

Updates Hello World to skip null body when drawing.

I noticed when drawing 0 boxes that there is still something being rendered:

image

@notgiven688
Copy link
Owner

Using string-tags to filter out "non-drawables" is probably not good style. The body you observe being drawn at the center is the world.NullBody.

So if(body == planeBody || body == world.NullBody) continue; should fix it (untested).

@apkatsikas
Copy link
Contributor Author

Using string-tags to filter out "non-drawables" is probably not good style. The body you observe being drawn at the center is the world.NullBody.

So if(body == planeBody || body == world.NullBody) continue; should fix it (untested).

Yup - this works great. I've made the change.

@notgiven688 notgiven688 merged commit 046e419 into notgiven688:main Dec 6, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants