Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Currently my game needs a top ocean view. Can this ocean effect done using box2d? or should I dive into write my own physics (liquid/water simulation). Ideas and suggestions are welcome.

share|improve this question

Physics and appearance are completely different things. I suppose you mean the latter, so Box2d cannot help you, as well as any other physics engine. The simpliest approach is to make an animated water tile and just fill your surface with it. This texture can also be generated procedurally if you want (for example, using noise algorithms). It is quite simple to implement and applicable to both 2d and 3d.

Speaking about water physics, Box2d and most of other physics engines do not support fluid dynamics. However, if you only need simple things like inertia and acceleration, they can easily be achieved with Box2d, because in this case you just need to tweak bodies' parameters.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.