Changeset 6522 in orxonox.OLD for trunk/src/world_entities/environments
- Timestamp:
- Jan 18, 2006, 2:20:13 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/environments/water.cc
r6519 r6522 46 46 this->velocities = NULL; 47 47 this->viscosity = 5; 48 this->cohesion = .0000000 1;48 this->cohesion = .0000000001; 49 49 50 50 if (root != NULL) … … 157 157 4 * this->grid->height(i, j); 158 158 this->velocities[i][j] += dt * this->viscosity * this->viscosity * u / this->height; 159 } 160 } 161 // advect 159 this->grid->height(i, j) += dt * this->velocities[i][j]; 160 } 161 } 162 /* // advect 162 163 for(j = 1; j < this->grid->rows() - 1; j++) { 163 164 for(i = 1; i < this->grid->columns() - 1; i++) { 164 165 this->grid->height(i, j) += dt * this->velocities[i][j]; 165 166 } 166 } 167 }*/ 167 168 // bound 168 169 // unsigned int w = this->grid->columns - 1;
Note: See TracChangeset
for help on using the changeset viewer.