34#define _def_PackedNoise true
37 #define _LN001_ -4.605170186
43#define _DECAYFUNCTION_ 2
66 mTime += timeSinceLastFrame;
81 float dx =
x -
mPos.x;
84 float dy =
y -
mPos.y;
87 #if _DECAYFUNCTION_ == 0
88 float r = sqrt(dx*dx + dy*dy);
89 #elif _DECAYFUNCTION_ == 1
90 float r = sqrt(dx*dx + dy*dy);
91 #elif _DECAYFUNCTION_ == 2
92 float r = dx*dx + dy*dy;
101 #if _DECAYFUNCTION_ == 0
103 #elif _DECAYFUNCTION_ == 1
105 #elif _DECAYFUNCTION_ == 2
float mK1
Time decay term.
bool update(const Ogre::Real &timeSinceLastFrame)
Call it each frame.
double mTime
Elapsed time.
float mK2
Distance decay term.
PressurePoint(Ogre::Vector2 Orig, float p, float T, float L)
Default constructor.
Ogre::Vector2 mPos
Direction (must be normalised)
~PressurePoint()
Destructor.
float getValue(const float &x, const float &y)
Get the especified x/y noise value.
float mC
Speed (calculated)
float mK
Dispersion factor.