user3421416
user3421416

Reputation:

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.

Upvotes: 9

Views: 4578

Answers (2)

kalan nawarathne
kalan nawarathne

Reputation: 2014

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.

Upvotes: 2

Devester
Devester

Reputation: 1183

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

Upvotes: 3

Related Questions