dimforge / rapier

2D and 3D physics engines focused on performance.
https://rapier.rs
Apache License 2.0
3.89k stars 242 forks source link

Fix out of bounds access #478

Closed AnthonyTornetta closed 4 months ago

AnthonyTornetta commented 1 year ago

Resolves #477 by checking index is within bounds before accessing data at that index

sebcrozet commented 1 year ago

Thank you for this PR. This fix isn’t ideal as it result in some contacts being ignored by the constraints solver. The case that is being checked here shouldn’t happen, so something must be wrong with disabling bodies as you mentioned in #477.