Create Water In Libgdx
I am develooping a game in libgdx with box2d. I spent hours of searching for a tutorial or somthing that explain how to create water in libgdx with box2d. I can't find how to do this. If somone have an idea it will very help me.
How to create water in libgdx with box2d?
I am really need your help.
Install this libgdx/box2d android app, run it and then choose "Buoyancy" to see if that is what you are looking for. It is open source and the link for its github is in the app's description.
If you prefer, here is directly to their Buoyancy test class: https://github.com/Leakedbits/Codelabs/blob/master/codelabs/src/com/leakedbits/codelabs/box2d/BuoyancySample.java
You may want to try Google's liquidfun Liquidfun integration with libgdx. liquidfun is an extension to box2D. So it has additional functionality to create particle groups that behaves like liquids. I successfully tried this libgdx liquidfun extension in a sample libgdx project.
链接地址: http://www.djcxy.com/p/79460.html上一篇: 使用角度移动矩形
下一篇: 在Libgdx中创建水