erincatto / box2d

Box2D is a 2D physics engine for games
https://box2d.org
MIT License
8.36k stars 1.54k forks source link

Initialize variables properly for b2RopeTuning #705

Closed anacierdem closed 2 years ago

anacierdem commented 2 years ago

stretchHertz and stretchDamping were not initialized for b2RopeTuning and these can cause floating point exceptions on embedded systems if they for example result in unimplemented operations such as multiplication by denormalized floats. I'm not sure on the actual values and I can open an issue if necessary.

erincatto commented 2 years ago

69276dc33204891b9c3f51d4352a684a041e25c4