Questions tagged [liquidfun]

LiquidFun is a 2D rigid-body and fluid simulation C++ library for games based upon Box2D. LiquidFun code can be written in C++, Java, or JavaScript.

LiquidFun is a 2D rigid-body and fluid simulation library for games based upon . LiquidFun code can be written in C++, , or .

References:

29 questions
1
vote
1 answer

box2D+ LiquidFun to realize a jelly effect

I have created an oval (2D), deformable by dragging, as elastic as rubber or jelly, able to collide with other rigid bodies and bounce. Now I can change its shape in some way by dragging the oval. The problem I am facing now is that the oval doesn't…
0
votes
0 answers

Get all particles in particle group liquidfun javascript

I am using liquidfun.js and I wanted to set the color of the water, but I am using spawnParticles to spawn the water, and I don't know how to get all the particles in a particle group. Current code: let particles = spawnParticles(1, 0, 5)
Yaumama
  • 17
  • 6
0
votes
1 answer

Error Compiling google liquidfun on Linux Ubuntu

I'm trying to compile Liquidfun 1.10 on ubuntu 20.10 following the instructions on the this page: https://google.github.io/liquidfun/Building/html/md__building_linux.html When I run the command: cd liquidfun/Box2D cmake -G'Unix Makefiles' make I…
AmiInfo
  • 11
  • 1
0
votes
0 answers

How can I build liquidfun library with cmake?

I am trying to run SFML-LiquidFun-Water-master open source file (https://github.com/alextrevisan/SFML-LiquidFun-Water) on VS2015, but it had some errors (such as there is no proper library "Box2D", "Liquidfun"), I realized that I have to install…
0
votes
1 answer

Box2D Ring shape

What would be the best way to create a ring shape in Box2D (by ring I mean a dynamic circle with empty space inside, so that other dynamic objects can fit in it). Thank you for your tips.
P. Lance
  • 179
  • 2
  • 13
0
votes
1 answer

liquidfun 1.1.0 ndk-build 2 compile errors

Alright, I'm trying to build liquidfun for the first time and I'm having trouble getting past compilation errors. I'm not to savvy with c/c++ so I'm not sure how to get these fixed so I can build. The error is... [armeabi-v7a] Compile++ arm :…
BSoli
  • 9
  • 4
0
votes
1 answer

LiquidFun rendering particles

I'm using LiquidFun to simulate water, it's a physics engine based on box2d that uses particles. My problem is when rendering the particles with a specific color. what is the purpose of setting the particle color on it's particle definition? when…
Kevin Bryan
  • 1,846
  • 2
  • 22
  • 45
0
votes
1 answer

How to use vertex buffer objects in webgl to position particles

Hello I am a bit new to 3d programming. I am trying to improve the efficiency of a particle system that I am simulating with liquid fun. Currently I am drawing the particle system this way: for (var j = 0; j < maxParticleSystems; j++) { var…
xerotolerant
  • 1,955
  • 4
  • 21
  • 39
0
votes
0 answers

Which would take less processing power, drawing many vector images rapidly? Or drawing a bitmap repeatedly?

Hello I am using liquidfun.js to simulate a particle system. I am drawing the system using an html5 canvas. The simulation becomes laggy well below the 34k particles that the google engineers say that they get. Mines becomes a slideshow at around…
xerotolerant
  • 1,955
  • 4
  • 21
  • 39
0
votes
1 answer

Using liquidfun.js within nw.js

I am writing an application that uses two components that appear to be conflicting with each other. liquidfun.js and node.js/NW.js I am using liquidfun to do a fluid simulation. I am using window.get() in NW.js to set the window zoom level. Each…
xerotolerant
  • 1,955
  • 4
  • 21
  • 39
0
votes
1 answer

Why does does liquidfun js say world does not exist

Hello I am trying to build a liquid sim using liquidfun js.
xerotolerant
  • 1,955
  • 4
  • 21
  • 39
0
votes
1 answer

Trouble compiling LiquidFun Paint - "Found SWIG , requires 2.0.11 or above. Stop"

I am having trouble compiling LiquiFun Paint I am using Eclipse. I receive Unable to launch cygpath. Is Cygwin on the path?] java.io.IOException: Cannot run program "cygpath": CreateProcess error=2, The system cannot find the file specified I…
Sam Leach
  • 12,746
  • 9
  • 45
  • 73
0
votes
1 answer

Jbox2d LiquidFun particle speed

Using JBox2D with LiquidFun my water particles are functioning fine with the exception that they travel at very slow velocities. I can't seem to find a way to get the particles to fall faster. Any ideas?
NJGUY
  • 2,045
  • 3
  • 23
  • 43
0
votes
1 answer

categoryBits/maskbits filter for LiquidFun

My game has particle fluids using LiquidFun. Now, I want to have 1 physics object that only collides with particle systems and not with any other Box2D/LiquidFun fixtures (like an invisible shield around the hero that repulses water). I couldn't…
sanchitgulati
  • 456
  • 2
  • 8
1
2