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 helper: draw shapes of physics objects #70

Open
hannojg opened this issue Mar 19, 2024 · 1 comment
Open

debug helper: draw shapes of physics objects #70

hannojg opened this issue Mar 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@hannojg
Copy link
Member

hannojg commented Mar 19, 2024

It would be helpful to see the shapes we create in the physics world during development.

I think the simplest implementation would be to just draw boxes. We could create aabb for the bullet shapes and then use:

https://github.com/google/filament/blob/93b15dac87d255ac6c6b66ddaf9aa00ea5a55a3f/samples/lightbulb.cpp#L363-L367

Otherwise we could just render all vertices:

https://github.com/google/filament/blob/93b15dac87d255ac6c6b66ddaf9aa00ea5a55a3f/samples/hellotriangle.cpp#L133-L159

(The downside to that seems to be that we need to have some kind of material)

@hannojg hannojg added the enhancement New feature or request label Mar 19, 2024
@hannojg
Copy link
Member Author

hannojg commented Jul 16, 2024

Screenshot 2024-07-16 at 15 48 00

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

No branches or pull requests

1 participant