Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6522 in orxonox.OLD for trunk/src/world_entities/environments


Ignore:
Timestamp:
Jan 18, 2006, 2:20:13 AM (19 years ago)
Author:
bensch
Message:

trunk: switch to WireFrame with
Shell → GraphicsEngine wireframe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/environments/water.cc

    r6519 r6522  
    4646  this->velocities = NULL;
    4747  this->viscosity = 5;
    48   this->cohesion = .00000001;
     48  this->cohesion = .0000000001;
    4949
    5050  if (root != NULL)
     
    157157          4 * this->grid->height(i, j);
    158158      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
    162163  for(j = 1; j < this->grid->rows() - 1; j++) {
    163164    for(i = 1; i < this->grid->columns() - 1; i++) {
    164165      this->grid->height(i, j) += dt * this->velocities[i][j];
    165166    }
    166   }
     167  }*/
    167168  // bound
    168169//   unsigned int w = this->grid->columns - 1;
Note: See TracChangeset for help on using the changeset viewer.