24#ifndef PRESSUREPOINT_H_INCLUDED
25#define PRESSUREPOINT_H_INCLUDED
47#ifndef _HydraxDensity_
48 #define _HydraxDensity_ 1025
50#ifndef _HydraxGravity_
51 #define _HydraxGravity_ 9.81
60namespace Hydrax{
namespace Noise
95 bool update(
const Ogre::Real &timeSinceLastFrame);
103 float getValue(
const float &
x,
const float &
y);
A PressurePoint defined by the origen, pressure pulse, Maximum time of perturbation and wave longitud...
Ogre::Vector2 getOrigin() const
Returns origin of the PressurePoint.
float GetTyrePressure() const
Returns pressure pulse.
float mK1
Time decay term.
bool update(const Ogre::Real &timeSinceLastFrame)
Call it each frame.
double mTime
Elapsed time.
float mK2
Distance decay term.
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 getTime() const
Returns time ellapsed.
float mC
Speed (calculated)
float mK
Dispersion factor.
float getMaximumTime() const
Returns maximum time.
float getLength() const
Returns wave length.