Package | Description |
---|---|
org.gicentre.utils.network.traer.physics |
Physics library for use with Processing.
|
Modifier and Type | Field and Description |
---|---|
protected ParticleSystem |
Integrator.s |
Modifier and Type | Method and Description |
---|---|
ParticleSystem |
ParticleSystem.addCustomForce(AbstractForce customForce)
Adds a custom force to those in this particle system.
|
ParticleSystem |
ParticleSystem.removeAttraction(Attraction attraction)
Removes the given attraction from the collection of attractions stored in this particle system if it exists.
|
ParticleSystem |
ParticleSystem.removeCustomForce(AbstractForce customForce)
Removes the given custom force from the collection of custom forces stored in this particle system if it exists.
|
ParticleSystem |
ParticleSystem.removeParticle(Particle p)
Removes the given particle from the collection of particles stored in this particle system if it exists.
|
ParticleSystem |
ParticleSystem.removeSpring(Spring spring)
Removes the given spring from the collection of springs stored in this particle system if it exists.
|
ParticleSystem |
ParticleSystem.setDeltaT(float t)
Sets the size of the time step used with
Integrator.step(float) for this ParticleSystem. |
ParticleSystem |
ParticleSystem.setDrag(float d)
Sets the drag component that affects the particles in this system.
|
ParticleSystem |
ParticleSystem.setGravity(float g)
Sets the gravity with 0,g,0 components.
|
ParticleSystem |
ParticleSystem.setGravity(float x,
float y,
float z)
Sets the x, y, z components of the gravity vector.
|
ParticleSystem |
ParticleSystem.setIntegrator(int integrator)
Deprecated.
Consider replacing with
setIntegrator(Integrator.METHOD) . |
ParticleSystem |
ParticleSystem.setIntegrator(Integrator.METHOD integrator)
Sets the integrator for this particle system based on the specified integrator name.
|
ParticleSystem |
ParticleSystem.setIntegrator(Integrator integrator)
Sets the integrator for this particle system based on the specified integrator.
|
ParticleSystem |
ParticleSystem.tick()
Advances this ParticleSystem's Integrator by the local time step.
|
ParticleSystem |
ParticleSystem.tick(float t)
Advances this ParticleSystem's Integrator by a user-specified time step.
|
Modifier and Type | Method and Description |
---|---|
abstract Integrator |
Integrator.METHOD.factory(ParticleSystem physics)
Factory capable of generating integrators.
|
Constructor and Description |
---|
BackwardEulerIntegrator(ParticleSystem s)
Sets up the integrator.
|
ForwardEulerIntegrator(ParticleSystem s)
Sets up the integrator.
|
Integrator(ParticleSystem s)
Creates a new integrator that will apply to the given particle system.
|
ModifiedEulerIntegrator(ParticleSystem s)
Sets up the integrator.
|
RungeKuttaIntegrator(ParticleSystem s)
Sets up the integrator to be used by the given particle system.
|
SettlingRungeKuttaIntegrator(ParticleSystem s)
Sets up the integrator to be used by the given particle system.
|
SettlingRungeKuttaIntegrator(ParticleSystem s,
int settlingAge)
Creates the integrator to be applied to the given particle system with the given settling age.
|