0

I am able to implement particle system in cocos2d and now i want to attach my particle with a dynamic b2Body, so that, it can follow the body.

I have found a tutorial about Cocos2D Particles Following b2Body at [this site]. But not understand "how to use" section. Can any one please tell me, how can i attach my particle with my b2Body?

Zishan
  • 17
  • 4
  • The site you mentioned solves the problem of world moving and is a bit overkill for what you try to achieve. Can you please post what you have so far? It should just work to set the emitter to a CCSprite and schedule a function to change the position and rotation of that CCSprite according to the b2body – s1m0n Apr 30 '12 at 08:05

1 Answers1

0

Firstly, you should create an object that contain the b2body.

Secondly, you should connect the object to the b2body. If you don't know how to do this, you can read this question

Lastly, you should just add the particle system as the child of the object.

Community
  • 1
  • 1
Ringo_D
  • 342
  • 1
  • 2
  • 12