Verlet Physics particle setStrength();
in
Contributed Library Questions
•
1 year ago
I'm trying to initiate a particle in a class, which consists of an image and a TUIOZone all in the same place. I'm also using a slider, w
hich limits the visible artworks. What I need it to do is ‘remove’ the particles as well, so that visible objects aren’t affected by invisible ones. I’ve been trying to initialise the behavior in the constructor, then set it later on in the update() function of my class. To do this, i'm trying to use setStrength(float), which i found in the verlet2DParticle javadoc here.
A friend
proposed I move the particle to off the screen, but with the zone, image and particle linked as they are, I’m wary to do something like that until I’m sure setting the attraction strength isn’t an option.
1