Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

How to draw Liquid fun particles in Processing

$
0
0

Apologies if I have asked this question already but I don't think it was submitted so...

I think what I am trying to do is simple but it's pretty hard to find any documentation... All I want to do is to see particles on the screen using the liquidfun library although to find examples of how to use this is not straightforward.

Can anyone just show me the code for drawing liquidfun particles on a screen in Processing....so far I have got:

void setup(){ size(1040,1060); smooth(); CircleShape shape = new CircleShape(); shape.m_p.set(0, 30); shape.m_radius = 20; ParticleGroupDef pd = new ParticleGroupDef(); pd.flags = ParticleType.b2_waterParticle; pd.shape = shape; box2d.world.createParticleGroup(pd); }

void draw(){ background(255); } but I don't know how to actually see the particles on the screen.


Viewing all articles
Browse latest Browse all 2896

Trending Articles