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

Debug render colliders #73

Merged
merged 9 commits into from
Jul 16, 2023
Merged

Debug render colliders #73

merged 9 commits into from
Jul 16, 2023

Conversation

Jondolf
Copy link
Owner

@Jondolf Jondolf commented Jul 15, 2023

Adds debug rendering for all supported collider types in 2D and 3D, refactors the debug plugin code, and adds a many_shapes 2D example. The visual meshes can be hidden by setting hide_meshes to true (default).

The example looks like this with collider debug rendering enabled and meshes hidden:

kuva

And like this with the meshes visible:

kuva

In the future, it would be good to have more configuration options at the global level and at the entity level to allow e.g. different line colors and to enable debug rendering only for specific entities. It could also be interesting to support actual meshes for the colliders instead of just wireframes.

@Jondolf Jondolf added the C-Enhancement New feature or request label Jul 15, 2023
@Jondolf Jondolf merged commit eacb887 into main Jul 16, 2023
3 checks passed
@Jondolf Jondolf deleted the debug-render-colliders branch July 16, 2023 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant