I’m having an issue where I’m trying to create a physics body for a sprite using outlines but the physics body is not remotely close to what the shape should be.
I’ve submitted a bug report for this (#6098508), but I’m curious as to if this is expected behavior by Corona. I really would like to use outlines for environmental physics bodies like hills and bumpy roads with weird shapes, but if this type of issue happens often then it could be problematic.
There’s an example image here. Also you can download the test program via Google Drive here.
Then I set up a table containing those shapes by key-value pairs (names) which I’ll later associate with the art. When the art piece/tile gets put on screen, I read its body info from the table and apply it. Basically, the newOutline() method has always been a “usually fine but not always perfect” approach… and that’s OK for many people, but I prefer making sure it’s perfect in every instance and I’ll take the extra effort to make sure it is.