메소드 | 설명 | |
---|---|---|
FluidSimulation ( |
||
createParticle ( int numParticlesToSpawn = 4 ) : void | ||
draw ( ) : void | ||
update ( ) : void |
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | System |
public createParticle ( int numParticlesToSpawn = 4 ) : void | ||
numParticlesToSpawn | int | |
리턴 | void |