google / liquidfun

2D physics engine for games
http://google.github.io/liquidfun
4.73k stars 639 forks source link

How it can be used in Libgdx for Destop and Core projects #60

Open androidflip opened 8 years ago

androidflip commented 8 years ago

I imported the Testbed as a Android Application and it is running fine in Android, but i want to use it in libgdx core project so that I can use water in any place for Desktop and Android application. I know it is using Native code, but i want to call this native code from core-project so that I can use this in Tiled+Libgdx game. In my game I am using Libgdx + Tiled + Eclipse. Please suggest.

stewartmiles commented 8 years ago

http://www.jbox2d.org/ is a complete Java port of Box2D + LiquidFun which may be easier to integrate into a library like libgdx.

if you're feeling brave you could try to get the SWIG bindings https://github.com/google/liquidfun/tree/master/liquidfun/Box2D/swig for LiquidFun working on the desktop.

Good luck :)

Cheers, Stewart

On Fri, Feb 5, 2016 at 12:25 AM, androidflip notifications@github.com wrote:

I imported the Testbed as a Android Application and it is running fine in Android, but i want to use it in libgdx core project so that I can use water in any place for Desktop and Android application I know it is using Native code, but i want to call this native code from core-project so that I can use this in Tiled+Libgdx game In my game I am using Libgdx + Tiled + Eclipse Please suggest

— Reply to this email directly or view it on GitHub https://github.com/google/liquidfun/issues/60.

androidflip commented 8 years ago

Thanks sir for the suggestion. jBox2d looks great. I will use jbox2D. Now seeing some hope to use water in game :) .

Thanks, Deepak