-1

I am trying to implement wave effect when any thing hits the hanging object, how can I achieve the both,:

1.Hang an object in air(as it will be a dynamic body which will wave)

2.implement waving effect on that body

Thank You

rptwsthi
  • 10,094
  • 10
  • 68
  • 109

2 Answers2

1

The answer isn't in cocos2d but in your physics engine, if you are using box2d check the distance joint. not sure on chipmunk.

Grady Player
  • 14,399
  • 2
  • 48
  • 76
0

in testbed example see the chain example.

u can create no of small boxes and joint them looks like rope.

but be careful while specify the anchorpoint.