Just wondering the best way to create a complex custom collision mask for a physics object, such as the image I have attached. It seems that the Polygon physics mask is limited to a certain number of points.
I am aiming to have a ball roll down the terrain image I have provided.
You need to do that in your favorite image editor, GIMP for instance.
The good thing is that you can make various slopes and heights and then easily combine them as you wish.
If you do things right, you’ll even be able to generate your terrain procedurally (the game builds a random terrain every time you load it). For that, you should use a grid to create your slopes and then assign height variables to each image.
Hope I’m making sense to you.
Cheers