Method | Description | |
---|---|---|
FluidSimulation ( |
||
createParticle ( int numParticlesToSpawn = 4 ) : void | ||
draw ( ) : void | ||
update ( ) : void |
Method | Description | |
---|---|---|
calculateForce ( int index, Vector2 accumulatedDelta ) : Vector2[] | ||
calculatePressure ( int index ) : void | ||
findNeighbors ( |
||
getGridX ( float x ) : int | ||
getGridY ( float y ) : int | ||
moveParticle ( int index ) : void | ||
prepareCollisions ( ) : void | ||
prepareSimulation ( int index ) : void | ||
resolveCollision ( int index ) : void |
public FluidSimulation ( |
||
world | ||
spriteBatch | ||
font | ||
return | System |
public createParticle ( int numParticlesToSpawn = 4 ) : void | ||
numParticlesToSpawn | int | |
return | void |