0
votes

I'm using chipmunk and I want to stack boxes in a column, but when they collide, they bounce. I already set elasticity to 0 to all boxes, but they are still bouncing upwards.

Any suggestions to stop this behavior?

Thanks!!!

2

2 Answers

0
votes

I dont know Chipmunk much. Bu it should be close to Box2D i guess.

In Box2D you can prevent it simply setting the "restitution" value to "0" for all boxes.

For example:

boxFixtureDef.restitution = 0.0f;

I hope this gives some idea for solving this problem in Chipmunk.

0
votes

Depending on how large the stack of boxes is, you'll need to increase the number of iterations to increase the solver's accuracy.