Projects > cpp > Issues > Bug #4577

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

With ParticleSystem::PositionType::FREE mode, The emitted particle still follow the emitter position when set a rotation for particle.

Bug #4577 [Closed]
boyu0 2014-03-27 06:13 . Updated over 10 years ago

Use this code in DemoFlower::onEnter():
`
ParticleDemo::onEnter();

_emitter = ParticleFlower::create();
_emitter->setEmissionRate(50);
_emitter->setRotation(-30);
_emitter->setAngleVar(0);
_emitter->setAngle(90);
_emitter->setRadialAccel(0);
_emitter->setTangentialAccel(0);
_emitter->retain();
_background->addChild(_emitter, 10);
_emitter->setTexture( Director::getInstance()->getTextureCache()->addImage(s_stars1) );

_background->stopAllActions();

setEmitterPosition();`

Move the particle by mouse/finger, the emitted particle will follow the emitter.

zhangxm 2014-04-01 05:47
  • Target version changed from 3.0-rc1 to 3.0-rc2
zhangxm 2014-04-08 03:36
  • Priority changed from Normal to High
boyu0 2014-04-09 08:50
  • Priority changed from High to Normal
  • Target version changed from 3.0-rc2 to Candidate

Since we have ParticleSystem::setAngleVar(); and ParticleSystem::setAngleVar(); method, the demand of rotate a ParticleSystem is not that common.
Fix this bug has lots of "transform" work to do, without an inclusive test, add this fix to 3.0 is not safety, and it also has some performance lost.
So I changed this issue to "Candidate for next 3.0 release".
And here is the PR link for someone who urgent need this fix:
https://github.com/cocos2d/cocos2d-x/pull/6127

walzer@cocos2d-x.org 2014-10-08 02:57

Redmine issue system is closed, we are using github issue system instead.

This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8384

Atom PDF

Status:Closed
Start date:2014-03-27
Priority:Normal
Due date:
Assignee:boyu0
% Done:

0%

Category:all
Target version:Candidate