Does anyone have some sample source code using box2d simulating water? Can you share? Thank you.
Eme Fibonacci Well-Known Member Licensed User Longtime User Oct 11, 2018 #1 Does anyone have some sample source code using box2d simulating water? Can you share? Thank you.
Star-Dust Expert Licensed User Longtime User Oct 11, 2018 #2 I had started to translate this but then other commitments prevented me from continuing the work Here You find the result Here the code is source in Java
I had started to translate this but then other commitments prevented me from continuing the work Here You find the result Here the code is source in Java
Eme Fibonacci Well-Known Member Licensed User Longtime User Oct 11, 2018 #3 seems very complex to me. I had wondered if anyone did anything in 2D with b4a or b4j and box2d for simple games with water simulation
seems very complex to me. I had wondered if anyone did anything in 2D with b4a or b4j and box2d for simple games with water simulation
Erel B4X founder Staff member Licensed User Longtime User Oct 11, 2018 #4 box2d is a physics engine for rigid bodies. It might be possible to create water simulation but it is not really designed for it.
box2d is a physics engine for rigid bodies. It might be possible to create water simulation but it is not really designed for it.
Star-Dust Expert Licensed User Longtime User Oct 11, 2018 #5 See this thread https://www.b4x.com/android/forum/threads/liquidfun-box2d-based-library.92405
Star-Dust Expert Licensed User Longtime User Oct 11, 2018 #6 Something that looks like you can find it here: https://www.b4x.com/android/forum/threads/b4x-bitmapcreator-cross-platform-falling-sand-game.94276
Something that looks like you can find it here: https://www.b4x.com/android/forum/threads/b4x-bitmapcreator-cross-platform-falling-sand-game.94276
Eme Fibonacci Well-Known Member Licensed User Longtime User Oct 11, 2018 #7 Erel said: box2d is a physics engine for rigid bodies. It might be possible to create water simulation but it is not really designed for it. Click to expand... I just trying to get results like theses. http://www.iforce2d.net/b2dtut/buoyancy
Erel said: box2d is a physics engine for rigid bodies. It might be possible to create water simulation but it is not really designed for it. Click to expand... I just trying to get results like theses. http://www.iforce2d.net/b2dtut/buoyancy
Erel B4X founder Staff member Licensed User Longtime User Oct 11, 2018 #8 I see. You want to simulate the behavior of rigid bodies inside water. I will try to create an example based on this tutorial.
I see. You want to simulate the behavior of rigid bodies inside water. I will try to create an example based on this tutorial.
Eme Fibonacci Well-Known Member Licensed User Longtime User Oct 11, 2018 #9 Erel said: I see. You want to simulate the behavior of rigid bodies inside water. I will try to create an example based on this tutorial. Click to expand... Wow! That's why I love b4x.
Erel said: I see. You want to simulate the behavior of rigid bodies inside water. I will try to create an example based on this tutorial. Click to expand... Wow! That's why I love b4x.
Star-Dust Expert Licensed User Longtime User Oct 14, 2018 #10 see this: http://madebyevan.com/webgl-water/ being able to do it in B4X would be great
Erel B4X founder Staff member Licensed User Longtime User Oct 15, 2018 #11 Erel said: I see. You want to simulate the behavior of rigid bodies inside water. I will try to create an example based on this tutorial. Click to expand... [XUI2D] Floating Bodies Simulation
Erel said: I see. You want to simulate the behavior of rigid bodies inside water. I will try to create an example based on this tutorial. Click to expand... [XUI2D] Floating Bodies Simulation