fisica shapes stick together
in
Contributed Library Questions
•
2 years ago
When using the Fisica library, in particular via SVGs from Geomerative, I've been having two problems I have not been able to surmount.
The first that shapes often stick together when in a world. The Fisica library (or the JBox2D library under it) provides mechanisms to keep shapes from overlapping, but sometimes it fails, and shapes will not separate. This is readily apparent when using the Fisica WingedStar example.
I've tried a lot of kluges, but have not managed to reliably convince the engine to separate shapes once they have joined together.
The other problem with the Fisica/Geomerative combination is that imported SVGs routinely produce these errors:
- Didn't add unusable polygon. Dumping vertices:
- float xv[] = {-0.197412f,-0.156395f,0.072887f,-0.463871f,-0.238113f,};
- float yv[] = {-0.122745f,-0.046813f,0.542663f,0.555746f,-0.028875f,};
- Found invalid polygon,
- polygon is too thin.
These errors don't seem to make a difference in the executed sketch, but really clutter the console.
Any ideas?
1