Fix ParticleSystem yCoordFlipped bug.

This commit is contained in:
boyu0 2014-04-30 16:18:39 +08:00
parent 8283ab9435
commit c1d60f4b33
1 changed files with 2 additions and 9 deletions

View File

@ -725,16 +725,9 @@ void ParticleSystem::update(float dt)
tmp = radial + tangential + modeA.gravity;
tmp = tmp * dt;
p->modeA.dir = p->modeA.dir + tmp;
if (_configName.length()>0)
if (_configName.length()>0 && _yCoordFlipped == -1)
{
if (_yCoordFlipped == -1)
{
tmp = p->modeA.dir * dt;
}
else
{
tmp = p->modeA.dir * -dt;
}
tmp = p->modeA.dir * -dt;
}
else
{