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

Find out why godot physics debug draw doesn't work #1095

Closed
hhyyrylainen opened this issue Apr 21, 2020 · 7 comments · Fixed by #2215
Closed

Find out why godot physics debug draw doesn't work #1095

hhyyrylainen opened this issue Apr 21, 2020 · 7 comments · Fixed by #2215

Comments

@hhyyrylainen
Copy link
Member

hhyyrylainen commented Apr 21, 2020

there is a godot editor option to enable physics debug drawing, but it doesn't work for me when starting the game from the editor.

I tried this but it didn't work:
https://godotengine.org/qa/44597/how-to-debugdraw-a-collisionshape2d

@hhyyrylainen hhyyrylainen added difficult engine possibly engine related issue labels Apr 21, 2020
@athariqk
Copy link
Member

athariqk commented Apr 21, 2020

Works for me, though only with the chunks and marine snows, the cells were not.
collisionshapes

@hhyyrylainen
Copy link
Member Author

So it half works? I didn't check the chunks. Why I'd mainly want to see this is to debug the size of the pilus and cell to cell collisions.

@crodnu
Copy link
Contributor

crodnu commented May 17, 2020

this kinda works for me but it's very inaccurate (it seems to only do one sphere, and grows it as the cell gets larger, without any care in the world as how good that actually represents the cell collision or how many shapes it actually has)
Captura

@hhyyrylainen
Copy link
Member Author

I've noticed that the physics doesn't really keep up when you modify your cell.
There's a separate issue for it: #1251
If the physics debug draw works for you, it will be much easier for you to fix that issue, than for me to try to do that blind.

@hhyyrylainen
Copy link
Member Author

So this works for me now. Might have been the update to Godot 3.2.1 that did it?

@hhyyrylainen
Copy link
Member Author

Actually that might be the extra engulf detector area I added, and the separate collisions are still not working. But as we are probably doing physics incorrectly for those, it would make sense they don't render: #1126

@athariqk
Copy link
Member

athariqk commented Feb 8, 2021

Turns out this is just a limitation that the debug drawing of custom collision shapes created through CollisionObject APIs is currently not supported. Here's a PR that addresses this: godotengine/godot#45783

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants