dimforge / dimforge/nphysics

Broad phase pair filters cannot access body information

Open
#273 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.6k
Forks
120
PR merge metrics
No merged PRs in 30d

Description

The current API for the broad phase pair filter cannot access any information about the bodies that are colliding. The filter has access to the handles via the `BroadPhasePairFilter` trait but there is not way to retrieve the body information from the set due to the fact that `MechanicalWorld::step`, which calls the filter, requires mutable access to the body set. Utilizing the user data on the collider is sufficient for cases where the information does not change during each step (e.g., parent information) but cannot be used for information about a body that may have been updated.

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.