Wonder how I'd go about changing the size of an FCircle on the fly. This seems doable on FBox with setWidth() and setHeight(), but I there doesn't seem to be an equivalent (i.e., setDiameter()) in FCircle. What the best way around this?
I've begun using Fisica because I ran into problems with Boxwrap2D not rendering on Android. Anyway... I have a quick (and hopefully not too noob-ish) question.
How might I go about accessing the underlying
Body (org.jbox2d.dynamics.Body) object of an
FBody (Fisica.FBody)? FBody doesn't extend Body, so I'm not sure how Richard is leveraging/interfacing with the JBox2D library. I'll start digging through the Fisica source code now to figure this out, but would appreciate the guidance of those wiser than me.
My reasons? While Fisica is great, I'd prefer to do most of my work with Vec2, and it seems there aren't many Fisica methods for this. For example, I find:
Vec2 location = Body.getPosition();
...preferable to the FBody alternative of:
Vec2 location = new Vec2(FBody.getX(), FBody.getY());
Also, I'd like to call certain methods such as Body.applyImpulse() which don't seem to have Fisica equivalents.
Am I on the wrong path? Making a big, dumb mistake or two? Thanks in advance for the steer.