Hi all,
I'm having an image of a star that i would like to behave just as the circles in the Collision Filtering example project, only it has the shape of a... well... star, not rolling circles. Maybe there is a way to make a box2d shape out of a sprite?
Can't make it a PolygonShape since max 8 vertices are allowed, nor a ChainShape since it must be a DYNAMIC_BODY.
Comments
So it isn't possible to check for collision at a sprite's boundaries or something like that?
Tested also to draw the PolygonShape vertices from edge to edge like a pentagram, but alas - Polygon should be convex and should have a CCW winding order, whatever that means.
If this may be a solution, ie making five triangle shapes instead of the five pointed star and group the together in the body somehow, I'm not sure how to implement it in the code.
Also, the polygons were drawn CW (clockwise). If they were drawn CCW, it crashes with this slightly confusing error message:
https://www.codeandweb.com/physicseditor
Likes: saeys
https://www.mapeditor.org
If you need something less tiley, I can second RUBE. I've used it since my first game and it's unbeatable as a Box2D editor.
Likes: Apollo14, saeys