开发者

How to move water in iphone cocos2d?

开发者 https://www.devze.com 2023-02-20 11:11 出处:网络
I am trying to create an application very similar to iBeer I want to fill iphone from virtual water and can shake it so it produce bubbles? I tried to search any similar exam开发者_开发知识库ple of co

I am trying to create an application very similar to iBeer I want to fill iphone from virtual water and can shake it so it produce bubbles? I tried to search any similar exam开发者_开发知识库ple of code as I am very new to cocos2d but I can't. I wanna know how can I do this? Any helpful links? Do I have to use chipmunk or anything else?

Thanks Mani


Cocos 2D mainly serves to display sprites particules and otehr visual effects

The actual physics of it are handled by Chipmunk.

chipmunk is not so much a fluid engine but given enough small objects you can aproximate something like iBeer.

I remember seeing a video demo of chipmunk that did it.

I'm never did something close to that with chipmunk but try asking on the offcial forum

http://www.slembcke.net/forums/viewforum.php?f=1

they helped me out a lot and the author of chipmunk (scott) is very reactive and helpful.


thats the use of accelerometer and you affine transform your views


This explanation of animated water may be helpful.

0

精彩评论

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

关注公众号