diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2008-12-14 03:43:37 +0100 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-12-14 09:13:39 -0700 |
commit | 712744c5c985a906891a41679adbe6468e82649b (patch) | |
tree | c6f49cd89cf84e00212ba655629465a6c8cf106b /src/particleemitter.cpp | |
parent | ae7cd9ca453aee25ccf1f4eb277ab77144910da5 (diff) | |
download | mana-712744c5c985a906891a41679adbe6468e82649b.tar.gz mana-712744c5c985a906891a41679adbe6468e82649b.tar.bz2 mana-712744c5c985a906891a41679adbe6468e82649b.tar.xz mana-712744c5c985a906891a41679adbe6468e82649b.zip |
Fixed follow-parent of nested and being-following particle emitters
Diffstat (limited to 'src/particleemitter.cpp')
-rw-r--r-- | src/particleemitter.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/particleemitter.cpp b/src/particleemitter.cpp index 03fe4672..d1ba92ca 100644 --- a/src/particleemitter.cpp +++ b/src/particleemitter.cpp @@ -360,12 +360,13 @@ ParticleEmitter::createParticles(int tick) { newParticle = new Particle(mMap); } +
+ Vector position;
+ position.x = mParticlePosX.value(tick);
+ position.y = mParticlePosY.value(tick);
+ position.z = mParticlePosZ.value(tick); - - newParticle->setPosition( - mParticlePosX.value(tick), - mParticlePosY.value(tick), - mParticlePosZ.value(tick)); + newParticle->moveTo(position); float angleH = mParticleAngleHorizontal.value(tick); float angleV = mParticleAngleVertical.value(tick); |