Reputation: 755
I'm working with libGDX and I'd like to reproduce the water behavior we can find in games like Terraria or Go To Hell. The water must be able to flow under the effect of gravity and adapt it's shape to the container's shape.
Actually I don't really know were to start, therefore I have no code to show. I found some tutorial for water effects like reflexion or physics with Box2D, but nothing that I want for my project. If you have some clue it'd be great.
Thanks !
Upvotes: 1
Views: 2036
Reputation: 10898
The water effect can be achieved by using LiquidFun physics engine based on Box2D. There is an LiquidFun extension for LibGDX available.
Upvotes: 5