Can someone explain why I can't get my particles to slow to a near-halt near the end of their lives with the following radialAccel value? I don't really understand the unit of these acceleration values, or whether they are supposed to indicate acceleration per update or the acceleration to apply over the lives of the particles. I did look at ParticleTest for this, but wasn't able to figure anything out after a while tinkering.
active = NO;
duration = (1.0f / 60.0f) * 2.0f; //two frames
gravity = cpvGravity;
centerOfGravity = cpvzero;
posVar = cpvzero;
angle = 180.0f;
angleVar = 180.0f;
speed = 200.0f;
speedVar = 50.0f;
tangentialAccel = 0.0f;
tangentialAccelVar = 0.0f;
radialAccel = -150.0f; //Also tried -20.0f... neither really seems to make a visual difference. I'm hoping to slow the particles to a near-halt over their lifetimes.
radialAccelVar = 0.0f;
startSize = 16.0f;
startSizeVar = 4.0f;
endSize = kParticleStartSizeEqualToEndSize;
endSizeVar = 0.0f;
life = 0.5f;
lifeVar = 0.1f;
startColor = (ccColor4F){0.4f, 0.4f, 0.7f, 1.0f};
startColorVar = (ccColor4F){0.0f, 0.0f, 0.3f, 0.0f};
endColor = (ccColor4F){1.0f, 1.0f, 1.0f, 0.0f};
endColorVar = (ccColor4F){0.0f, 0.0f, 0.0f, 0.0f};
startSpin = 180.0f;
startSpinVar = 180.0f;
endSpin = 0.0f;
endSpinVar = 0.0f;
blendAdditive = YES;
emissionRate = (numTotalParticles / 2.0f) * 60.0f;
self.texture = [[CCTextureCache sharedTextureCache] addImage:@"Assets/Graphics/StarParticle.png"];
Thanks!
Jason