Fisica Question
in
Contributed Library Questions
•
5 months ago
Hi,
I am curious if, when multiple objects are created from one declaration of a FBody they can individually be accessed...
so if I put this into draw(){ :
if(frameRate%5 == 0){
small = new FCircle(4);
small.setPosition(50,0);
world.add(small);
}
is there a way to get the positions of the circles aside from the last one created.
What I am trying to do is create an effect something like the mechanical attractors Richard Marxer has on his site.
(lines being traced for each of the falling objects)
Or perhaps I am going about this the wrong way...
And a second question, I do not see this in the reference anywhere, and can't easily guess it... is there a way to limit the velocity of a body... for example, I can do :
velocity = new PVector();
velocity.limit(20);
If I create my own velocity, however I don't know what handles velocity while using fisica (and don't know if this method can be used).
1