0
我有這個泡沫,我想表現出從底部出現,但速度太快,我想速度減慢到最小的代碼是..的cocos2d ccparticlesystem ....低速
emitter2.texture = [[CCTextureCache sharedTextureCache] addImage:@"Bubbles-1.png"];
emitter2.position = ccp(size.width/2,-200);
// gravity
emitter2.gravity = CGPointMake(-10, 1000);
// angle
emitter2.angle = 95;
emitter2.angleVar = 360;
// speed of particles
emitter2.speed = 1 ;//80;
emitter2.speedVar = 1;
// radial
emitter2.radialAccel = -120;
emitter2.radialAccelVar = 0;
// tagential
emitter2.tangentialAccel = 30;
emitter2.tangentialAccelVar = 0;
// life of particles
emitter2.life = 2;
emitter2.lifeVar = 1
什麼呢重力做完全不是它泡的運動區......請幫助@Chakalaka –
重力做exaclty一樣的地球引力做。爲什麼你不能飛,有時會掉到地上;)它加速了氣泡 – Chakalaka
thanx很多人...我欠你 –