开发者

How to Implement waving(Like pendulam) ropes effect in COCOS2D?

I am tryin开发者_如何学运维g 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


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜