-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
In CCParticleSystemAdvanced in initParticle function we have
// position
particle->pos.x = _sourcePosition.x;
particle->pos.y = _sourcePosition.y;
that cause variance of position not to be applied. to be applied.
The code parse the key sourcePositionVariance into posVar_ x and y.
But not implemented causing the particle distribution in a tight place.
I do not know if there is an intended to to the same like the original cc particle system does with
particle->pos.x = _sourcePosition.x + _posVar.x * CCRANDOM_MINUS1_1();
particle->pos.y = _sourcePosition.y + _posVar.y * CCRANDOM_MINUS1_1();
maybe the intention to use the box source
Metadata
Metadata
Assignees
Labels
No labels