ttecnomaster / VerletPhysicEngine

Apache License 2.0
2 stars 0 forks source link

VerletGrid acts weirdly at edges if there is a RectangleConstraint at same size #16

Closed ttecnomaster closed 3 months ago

ttecnomaster commented 3 months ago

If you add a VerletGrid and a RectangleConstraint with the same size to the simulation. Spheres act very weird. I think this is because the VerletGrid rounds its Grids to the lower number and won't fill the entire specified area.

Possible fix: give VerletGrid one more row and collumn instead of one less

ttecnomaster commented 3 months ago

The problem was: VerletGrid was not iterating on the Edges.