21 #ifndef OGRE_PATH_AFFECTOR_H
22 #define OGRE_PATH_AFFECTOR_H
26 #include "../../Libs/Utils_LIB/UPrecisionTimer.h"
29 #include <OgreParticleAffector.h>
30 #include <OgreParticleAffectorFactory.h>
31 #include <OgreStringInterface.h>
34 #define MIN_SECS_BEFORE_NEW_PATH 1.0f
46 String doGet(
const void* target)
const;
47 void doSet(
void* target,
const String& val);
54 void _initParticle(Particle* pParticle);
57 void _affectParticles(ParticleSystem* pSystem, Real timeElapsed);
64 _lastPathIndex = _currPathIndex;
66 _particlePaths[_currPathIndex] = path_;
67 _interpolatorValues[_currPathIndex] = &interpolatorValue_;
82 std::map<Ogre::Particle*, OpenSkyNet::Core::ParticleObject*>
_partMap;
92 String getName()
const {
return "Path"; }
95 ParticleAffector* createAffector(ParticleSystem* psys) {
97 mAffectors.push_back(p);
103 #endif //OGRE_PATH_AFFECTOR_H
unsigned int _currPathIndex
Definition: OgrePathAffector.h:85
Definition: OgrePathAffector.h:44
void setInterpolatorType(OpenSkyNet::Math::Interpolator::TYPE interpolatorType_)
Definition: OgrePathAffector.h:74
Definition: OgrePathEmitter.h:31
static CmdInterpolatorType msInterpolatorTypeCmd
Definition: OgrePathAffector.h:78
#define _OgreParticleFXExport
Definition: OgreParticlePluginPrerequisites.h:53
void addPath(const OpenSkyNet::Math::Path &path_, const float &interpolatorValue_, bool force_=false)
Definition: OgrePathAffector.h:59
TYPE
Definition: MInterpolator.h:37
OpenSkyNet::Math::Interpolator::TYPE getInterpolatorType() const
Definition: OgrePathAffector.h:76
#define MAX_PATHS
Definition: OgrePathAffector.h:33
OpenSkyNet::Math::Path & getPath(unsigned int index_)
Definition: OgrePathAffector.h:72
Definition: OgrePathAffector.h:90
OpenSkyNet::Utils::PrecisionTimer _timer
Definition: OgrePathAffector.h:80
OpenSkyNet::Core::PathUpdater * _pathUpd
Definition: OgrePathAffector.h:81
std::map< Ogre::Particle *, OpenSkyNet::Core::ParticleObject * > _partMap
Definition: OgrePathAffector.h:82
Definition: CPathUpdater.h:32
unsigned int _lastPathIndex
Definition: OgrePathAffector.h:86
Definition: UPrecisionTimer.h:58
OpenSkyNet::Math::Interpolator::TYPE _interpolatorType
Definition: OgrePathAffector.h:87
Definition: OgrePathAffector.h:40
#define MIN_SECS_BEFORE_NEW_PATH
Definition: OgrePathAffector.h:34