public SPHSimulation(float cellSpace, Rect domain) { CellSpace = cellSpace; Domain = domain; m_grid = new Grid(cellSpace, domain); SKGeneral = new SKPoly6(cellSpace); SKPressure = new SKSpiky(cellSpace); SKViscosity = new SKViscosity(cellSpace); }
public SPHSimulation(float cellSpace, Rect domain) { CellSpace = cellSpace; Domain = domain; Viscosity = 0.2f; m_grid = new IndexGrid(CellSpace, Domain); SKGeneral = new Poly6(CellSpace); SKPressure = new Spiky(CellSpace); SKViscosity = new Viscosity(CellSpace); }