anm-ol / sim3d

https://anm-ol.github.io
6 stars 1 forks source link

Particles stick to ceiling when wallElasticity is set to 0.0f #31

Closed its-nmt05 closed 4 months ago

anm-ol commented 5 months ago

Should be fixed with commit e3d12d7bfc30665160948d04b188ed97f93b8e84

its-nmt05 commented 5 months ago

Still persists after commit

Parameters to reproduce issue:

// particle parameters
const int numParticles = 500;
const float size = 5.0f;
const float mass = size;
const vec3 maxVel = vec3(1.0f);

engine.wallElasticity = 0.0f;
engine.particleElasticity = 0.0f;
engine.NumSteps = 10;
engine.setAccelaration(vec3(0, -0.02f, 0));
anm-ol commented 4 months ago

Can't notice the issue anymore, prob fixed somewhere along the journey