mirror of https://github.com/axmolengine/axmol.git
Fix ParticleSystem yCoordFlipped bug.
This commit is contained in:
parent
8283ab9435
commit
c1d60f4b33
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue