Skip to content

posVar is not implemented #2

@yehielliv

Description

@yehielliv

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions