2

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 example 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

Inam Abbas
  • 1,480
  • 14
  • 28

3 Answers3

2

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.

Jason Rogers
  • 19,194
  • 27
  • 79
  • 112
  • Thanks for the response man. But is there something you can give me similar to ibeer? any tutorial ? links? – Inam Abbas Apr 15 '11 at 13:22
0

This explanation of animated water may be helpful.

Craig Ringer
  • 307,061
  • 76
  • 688
  • 778
anon
  • 1,071
  • 2
  • 8
  • 19
0

thats the use of accelerometer and you affine transform your views

rd_
  • 395
  • 3
  • 13