the-butterfly-effect / tbe

The Butterfly Effect, a realistic physics simulation game
http://the-butterfly-effect.org
GNU General Public License v2.0
97 stars 13 forks source link

Level Creator crashes when trying to scale very small objects #152

Open Wuzzy2 opened 8 years ago

Wuzzy2 commented 8 years ago

How to reproduce (I don't know if this always works):

I sometimes get a segmentation fault when doing this, but I don't know when exactly, so I can't reliably reproduce this (for now). I hope you are able to reproduce it. If not, leave me a message. b6067f70214b561bfc73bf567540a06d8ee51fe2

kaa-ching commented 8 years ago

This is a known limitation of the physics library Box2D.

Nothing should be dimensioned below approx 7cm.

So, this ticket is not about making things arbitrary small - there are soft limits in the physics engine preventing that. This ticket should be about making sure you cannot go below a certain size.

And yes, the walls of your cardboard box are too small :wink:

Wuzzy2 commented 4 years ago

Is this cardboard box polygon OK?

(-0.40,-0.4)=(-0.33,-0.4)=(-0.33,0.40)=(-0.40,0.40);(0.33,-0.4)=(0.4,-0.4)=(0.4,0.40)=(0.33,0.40);(-0.33,-0.4)=(-0.33,-0.33)=(0.33,-0.33)=(0.33,-0.4)