We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hey, I'm using the Fisica library in one sketch, I have create a FBlob and I need to acced the vertex of this FBlob. In the documentation there is a function getVertexBodies(), It is a java.util.ArrayList ArrayList, but when I call size() it is allways 0. There is also the float getVertexSize() and this return always 8.0 regardless of how many vertex the FBlob had. I supose, that I don't know how to implement it well :( Has anyone implemented it yet? I appreciate all help Mariana
Answers
Can you post a sample code? You can always have a look at the source code to see what other methods are available, if any.
Kf
Hey, I did a simple sample code, and the funktion works here! it should be something wrong in the "big" code... Any way, I try to grabb the mouse with .
setGrabbable(true);
to know if it is on (or inside) a FBody, but it don't works :( Here is the code: /** * FBlobs, Vertex, FBlob.getVertexBodies().size() * * 1° clik the mouse +3 times to create a second FBlob * 2° press SPACE to add new FBlob to world * Now you will see the second FBlob * 3° clik on a vertex or outside to test FBlob.getVertexBodies().size() */