planck.js
planck.js copied to clipboard
How to disable debug render?
Should I always use a testbed? It renders always debug layer. Any example how to draw a basic texture?
I like this lib more than box2d.js but I has no documentation. Reffers to box2d documentation doesn't helpfull because it has a lot of differences. So I can't use it because I don't know how to use it without testbed. Have no idea why this repo has so many stars..
This is how it can be used without testbed: https://github.com/shakiba/planck.js/blob/master/README.md#rendering-and-integration
Also you could see example folder to get familiar with API usage.
Yes, a minimalistic documentation would be really great.
There is not a single example showing how to use it without the testbed. You only show it in the readme but way to minimal.
This library seems really great, but the examples are lacking how todo certain things.
You need to create a renderer, testbed is a renderer itself, so it might be helpful to check it out to see how it works: https://github.com/shakiba/planck.js/blob/master/testbed/index.js#L354 Feel free to let me know if you have any specific question about it.
There are now a couple docs and examples:
- Rendering doc (with external implementation links):
- Simulation doc
- Testbed
Please feel free to reopen if needed.