|
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
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
60 namespace Hydrax{
namespace Noise
95 bool update(
const Ogre::Real &timeSinceLastFrame);
103 float getValue(
const float &
x,
const float &
y);
161 #endif // PRESSUREPOINT_H_INCLUDED
Ogre::Vector2 mPos
Direction (must be normalised)
bool update(const Ogre::Real &timeSinceLastFrame)
Call it each frame.
float getValue(const float &x, const float &y)
Get the especified x/y noise value.
float mK1
Time decay term.
float getMaximumTime() const
Returns maximum time.
PressurePoint(Ogre::Vector2 Orig, float p, float T, float L)
Default constructor.
float mK2
Distance decay term.
float GetTyrePressure() const
Returns pressure pulse.
double mTime
Elapsed time.
float getTime() const
Returns time ellapsed.
Ogre::Vector2 getOrigin() const
Returns origin of the PressurePoint.
A PressurePoint defined by the origen, pressure pulse, Maximum time of perturbation and wave longitud...
float mC
Speed (calculated)
float getLength() const
Returns wave length.
~PressurePoint()
Destructor.
float mK
Dispersion factor.