From Paul Melis, fixes to spelling mistakes/typos.

This commit is contained in:
Robert Osfield
2007-07-11 15:51:17 +00:00
parent 55f3b67dbb
commit 691a49d0fa
17 changed files with 58 additions and 57 deletions

View File

@@ -13,7 +13,7 @@ osgParticle::FluidProgram::FluidProgram(const FluidProgram& copy, const osg::Cop
_density(copy._density),
_wind(copy._wind),
_viscosityCoefficient(copy._viscosityCoefficient),
_densityCoefficeint(copy._densityCoefficeint)
_densityCoefficient(copy._densityCoefficient)
{
}
@@ -37,7 +37,7 @@ void osgParticle::FluidProgram::execute(double dt)
// compute force due to friction
osg::Vec3 velBefore = particle->getVelocity();
osg::Vec3 relative_wind = particle->getVelocity()-_wind;
osg::Vec3 wind_force = - relative_wind * Area * (_viscosityCoefficient + _densityCoefficeint*relative_wind.length());
osg::Vec3 wind_force = - relative_wind * Area * (_viscosityCoefficient + _densityCoefficient*relative_wind.length());
osg::Vec3 wind_accel = wind_force * particle->getMassInv();
double critical_dt2 = relative_wind.length2()/wind_accel.length2();