bepu / bepuphysics2

Pure C# 3D real time physics simulation library, now with a higher version number.
Apache License 2.0
2.35k stars 272 forks source link

Initializing big compound with only 1 member results in some weird internal tree error. #285

Closed emelrad12 closed 1 year ago

emelrad12 commented 1 year ago

This is running bepu in debug mode, so alll assertions are on. I would suggest either making it throw mor sensible exception when there is only 1 item, or if possible making it work with a single one. Here a screenshot of the error and callstack. image

RossNordby commented 1 year ago

Just a bug in the new binned builder's corner case; fixed in 299ed8919c6c9d976cb57c157596b5772a51f14e. Thanks for the report!

emelrad12 commented 1 year ago

Works great, thanks for fixing it so fast.