I have a CCSprite
that can bounce around the iPhone's screen. This sprite has a CCParticleSystemQuad
as a child node. The particles are just small, simple circles that trail behind the moving sprite. Everything works fine until the sprite rotates due to collision with a screen edge. When this happens the existing particles are suddenly drawn in a strange location.
Any idea why this is happening?
I've tried a few things so far. First I tried all three positionType
values for the particle system. None of these fixed the rotating problem. The actual rotation is done with a CCRotateTo
. Removing this action fixes the particle location problem. So perhaps rotating a CCSprite
child node on a CCLayer
could replace my current CCSprite
. I tried reading through http://www.cocos2d-iphone.org/forum/topic/63951 but it's a bit over my head. Any feedback and suggestions are greatly appreciated!
Edit #1 I found a quick fix: immediately before the CCRotateTo
I tell the trailing particles to resetSystem
. However I'd still like to understand the cause of the odd drawing behavior.