mirror of https://github.com/axmolengine/axmol.git
commit
25404a260b
|
@ -448,6 +448,11 @@ void PUParticleSystem3D::forceUpdate( float delta )
|
||||||
|
|
||||||
prepared();
|
prepared();
|
||||||
|
|
||||||
|
Vec3 currentPos = getDerivedPosition();
|
||||||
|
_latestPositionDiff = currentPos - _latestPosition;
|
||||||
|
_latestPosition = currentPos;
|
||||||
|
_latestOrientation = getDerivedOrientation();
|
||||||
|
|
||||||
if (!_emitters.empty()){
|
if (!_emitters.empty()){
|
||||||
emitParticles(delta);
|
emitParticles(delta);
|
||||||
preUpdator(delta);
|
preUpdator(delta);
|
||||||
|
@ -455,10 +460,6 @@ void PUParticleSystem3D::forceUpdate( float delta )
|
||||||
postUpdator(delta);
|
postUpdator(delta);
|
||||||
}
|
}
|
||||||
|
|
||||||
Vec3 currentPos = getDerivedPosition();
|
|
||||||
_latestPositionDiff = currentPos - _latestPosition;
|
|
||||||
_latestPosition = currentPos;
|
|
||||||
_latestOrientation = getDerivedOrientation();
|
|
||||||
_timeElapsedSinceStart += delta;
|
_timeElapsedSinceStart += delta;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue