C# 클래스 FluidPort.FluidSimulation

파일 보기 프로젝트 열기: klutch/Box2DFluid 1 사용 예제들

공개 메소드들

메소드 설명
FluidSimulation ( World world, SpriteBatch spriteBatch, SpriteFont font ) : System
createParticle ( int numParticlesToSpawn = 4 ) : void
draw ( ) : void
update ( ) : void

비공개 메소드들

메소드 설명
calculateForce ( int index, Vector2 accumulatedDelta ) : Vector2[]
calculatePressure ( int index ) : void
findNeighbors ( Particle particle ) : void
getGridX ( float x ) : int
getGridY ( float y ) : int
moveParticle ( int index ) : void
prepareCollisions ( ) : void
prepareSimulation ( int index ) : void
resolveCollision ( int index ) : void

메소드 상세

FluidSimulation() 공개 메소드

public FluidSimulation ( World world, SpriteBatch spriteBatch, SpriteFont font ) : System
world FarseerPhysics.Dynamics.World
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
font Microsoft.Xna.Framework.Graphics.SpriteFont
리턴 System

createParticle() 공개 메소드

public createParticle ( int numParticlesToSpawn = 4 ) : void
numParticlesToSpawn int
리턴 void

draw() 공개 메소드

public draw ( ) : void
리턴 void

update() 공개 메소드

public update ( ) : void
리턴 void