So there is currently no way to use bit masks for pixel perfect collision detection in Defold? Just can use geometric shapes? I saw elsewhere discussion we can add our own shape files to the editor. Is Defold potentially compatible with Physics Body Editor for easy creation and exportation of the JSON data defining irregular shaped polygonal masks? http://www.aurelienribon.com/blog/projects/physics-body-editor/
I am interested in this as well. I was sad that there was no polygon/edge shape for collision detection.
Would something like this work too? https://www.codeandweb.com/physicseditor
Thanks!
That one looks good too - if not even better in some respects, and both seem to do the same thing - make it easy to define and export a collision detection polygonal file. Then it would be a matter of if it has to be massaged a bit to be imported to the shape files in Defold… For the other editor I mentioned there are plugins that it accepts for different engines - that the engine producer creates.
These kinds of editors would be possible to make to support Defold’s collision object format. The larger mesh would be broken down into multiple convex shapes (although actual arbitrary mesh support would be better…). Either it could be added to Defold officially, or someone could make an editor which populated .collisionobject files with the proper data.
Tiles have automatic collision meshes possible to make. But sprites don’t. Should be eventually possible to do too to maybe reference a sprite and use the same code that the tiles are using when generating collision meshes.