How to simulate the water using R.U.B.E?

General discussion about the R.U.B.E editor
Post Reply
eeyue
Posts: 1
Joined: Mon Sep 16, 2013 1:49 am

How to simulate the water using R.U.B.E?

Post by eeyue »

thanks a lot!
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: How to simulate the water using R.U.B.E?

Post by iforce2d »

Box2D does not have any water simulation, so RUBE does not have any water either. One thing you can do, is to place sensor fixtures in your level and name them (or give custom properties) to mark them as water areas. Then, you can check which objects are overlapping the water areas and apply an upwards force. I made a topic about this here: http://www.iforce2d.net/b2dtut/buoyancy
Post Reply