I wonder if you could help me on this problem.
I'm doing a sort of Lander game. The ship moves around in caves.
I need a precise collision detection, as the side of the caves are "complexe"
I would like to generate automatically the collision vectors from the bitmap image.
I was thinking that I could
- Change the image to 2 colors
- Vectorise the new picture somehow
- Simplify the result somehow (less vectors)
- read the vectors
Here is a visual explanation
Is there a way of doing this programatically ?
Or do I need to define all my vectors manualy
Thanks for your help