For those who missed yesterday's tweet... A new version of Fisica is available.
In preparation for my upcoming Fisica workshop at ZZZINC at Barcelona, I made a big amount of changes to the library including the following:
Refactor the handling how bodies are grabbed. Added FWorld.grabBody(float, float), FWorld.dragBody(float, float) and FWorld.releaseBody(). Useful for Android apps.
Simplify the way to know if a contact contains certain bodies. Added FContact.contains(String b1), FContact.contains(String b1, String b2), FContact.contains(FBody b1), FContact.contains(FBody b1, FBody b2).
Implement sleeping handling for bodies. Added FBody.setAllowSleeping(boolean) and FBody.isSleeping().
Added a small Android example. It's a game!!
Allow drawing a debug version of the sketch. Added FBody.drawDebug() and FWorld.drawDebug(). They will improve with time
Small fix to the blob
Please give it a test and let me know how it goes!
This topic is regarding the new Processing 2.0+ API. I am trying to use the new methods beginContour() and endContour() for Geomerative. I was wondering if there are any plans to support endContour(CLOSE).
If not, what is the way to close some contours in a shape and others not?
In the library Geomerative, I'm trying to find out the resolution (dots per inch) of a given device . I must convert from device independent units (inches, etc...) that exist in fonts and SVGs to device units and I need this value.
Is there any plan to add this to the Processing API (I think it could belong here since each PGraphics will have a different one...)?
If not, is there any way to do this in a cross-platform way, so that it works both in desktop (using AWT) and in Android?