Package | Description |
---|---|
org.gicentre.utils.network.traer.physics |
Physics library for use with Processing.
|
Modifier and Type | Method and Description |
---|---|
Attraction |
ParticleSystem.getAttraction(int i)
Provides the attraction at the given position in the collection of attractions stored in this particle system.
|
Attraction |
ParticleSystem.makeAttraction(Particle a,
Particle b,
float strength,
float minDistance)
Creates an attractive force between the given particles with the given strength.
|
Attraction |
ParticleSystem.removeAttraction(int i)
Removes the attraction at the given position in the collection of attractions stored in this particle system.
|
Attraction |
Attraction.setMinimumDistance(float d)
Sets the minimum separation distance above which the attraction is applied.
|
Attraction |
Attraction.setStrength(float k)
Sets the strength of this Attraction.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Attraction> |
ParticleSystem.attractions()
Deprecated.
Replace in favour of the more consistently named getAttractions().
|
java.util.Collection<Attraction> |
ParticleSystem.getAttractions()
Reports a collection of the attractions currently defined as part of this particle system.
|
Modifier and Type | Method and Description |
---|---|
ParticleSystem |
ParticleSystem.removeAttraction(Attraction attraction)
Removes the given attraction from the collection of attractions stored in this particle system if it exists.
|