aboutsummaryrefslogtreecommitdiff
path: root/src/dynamics
diff options
context:
space:
mode:
authorEmil Ernerfeldt <emil.ernerfeldt@gmail.com>2021-02-17 11:19:51 +0100
committerEmil Ernerfeldt <emil.ernerfeldt@gmail.com>2021-02-17 11:19:51 +0100
commitf2d9225101843207188e554a14649f34870380ef (patch)
tree84a5f873d24299bbd003b0f43804f80eca6a8aa3 /src/dynamics
parent12c5dd4caa6af5750b682ba17229601e3a418155 (diff)
downloadrapier-f2d9225101843207188e554a14649f34870380ef.tar.gz
rapier-f2d9225101843207188e554a14649f34870380ef.tar.bz2
rapier-f2d9225101843207188e554a14649f34870380ef.zip
Add ColliderHandle:s to PairFilterContext
This makes it easy to write custom filters based on the handles. For instance, a user can add pairs of `ColliderHandle`s into a `HashSet` and do a lookup in a `ContactPairFilter` to easily (if maybe not efficiently) disable collisions between pairs of colliders. The same could be accomplished by using the `user_data: u128` field of the `Collider`, but it would be less ergonomic, and also with this PR that `user_data` space can be saved for more important things.
Diffstat (limited to 'src/dynamics')
0 files changed, 0 insertions, 0 deletions