dimforge / dimforge/bevy_rapier

`ContactPairView::collider2` can panic when using `in_fixed_schedule`

Open
#433 2 comments 0 reactions 0 assignees View on GitHub
A-Integration C-Bug D-Medium P-High S-not-started
Dominant language
Rust
Stars
1.6k
Forks
282
PR merge metrics
No merged PRs in 30d

Description

Hi I recently switched my app to using `in_fixed_schedule` and sometimes (generally when entities are being deleted) `ContactPairView::collider2` panics on unwrapping a `None` value.

For context, I'm trying to get the collider of a contact from `RapierContext::contacts_with` and this is happening in a system which is not in the fixed schedule.

I had never seen this behaviour before switching to `in_fixed_schedule` and it's happening all the time now so I'm very confident the change has something to do with that.

If you like I can try to produce a minimal example of this.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.