blaze.dynamics.fluid.SPHSimulation



class SPHSimulation ;
Implementation of a SPH-based fluid simulation

void addParticle (FluidParticle particle);
Add particle to simulation

Params:
FluidParticle particle the particle to add

void removeParticle (FluidParticle particle);
Remove particle from simulation

Params:
FluidParticle particle the particle to remove

int numParticles ();
Returns:
the number of particles

FluidParticle[] particles ();
Returns:
the particles in the simulation as an array

void resetForce ();
Resets the forces of all the particles to zero

void update (bVec2 gravity, TimeStep step);
Simulates the particles.

Params:
bVec2 gravity The gravity
TimeStep step The time step

Page was generated with on Tue Feb 10 19:13:13 2009