Renamed _A and _B to make them more meanigful

This commit is contained in:
Robert Osfield
2005-04-04 20:25:57 +00:00
parent ed0f780321
commit 9e5d905b05
2 changed files with 13 additions and 13 deletions

View File

@@ -41,7 +41,7 @@ namespace osgParticle
inline void setFluidViscosity(float v)
{
_viscosity = v;
_A = 6 * osg::PI * _viscosity;
_viscosityCoefficient = 6 * osg::PI * _viscosity;
}
/// Get the viscosity of the fluid.
@@ -51,7 +51,7 @@ namespace osgParticle
inline void setFluidDensity(float d)
{
_density = d;
_B = 0.2f * osg::PI * _density;
_densityCoefficeint = 0.2f * osg::PI * _density;
}
/// Get the density of the fluid.
@@ -65,15 +65,15 @@ namespace osgParticle
inline const osg::Vec3& getWind() const { return _wind; }
/// Set the acceleration vector.
inline void setAcceleration(const osg::Vec3& v) { _acceleration = v; }
inline void setAcceleration(const osg::Vec3& v) { _viscosityCoefficientcceleration = v; }
/// Get the acceleration vector.
inline const osg::Vec3& getAcceleration() const { return _acceleration; }
inline const osg::Vec3& getAcceleration() const { return _viscosityCoefficientcceleration; }
/** Set the acceleration vector to the gravity on earth (0, 0, -9.81).
The acceleration will be multiplied by the <CODE>scale</CODE> parameter.
*/
inline void setToGravity(float scale = 1.0f) { _acceleration.set(0, 0, -9.81f*scale); }
inline void setToGravity(float scale = 1.0f) { _viscosityCoefficientcceleration.set(0, 0, -9.81f*scale); }
/// Set the fluid parameters as for air (20<32>C temperature).
inline void setFluidToAir()
@@ -99,13 +99,13 @@ namespace osgParticle
virtual void execute(double dt);
osg::Vec3 _acceleration;
osg::Vec3 _viscosityCoefficientcceleration;
float _viscosity;
float _density;
osg::Vec3 _wind;
float _A;
float _B;
float _viscosityCoefficient;
float _densityCoefficeint;
};