Skip to content

Commit

Permalink
Fix area mask/layer issue (#175)
Browse files Browse the repository at this point in the history
Areas were using layer for both membership and filter. It was not using
mask at all.
  • Loading branch information
Ughuuu authored Jul 31, 2024
1 parent bc957d1 commit ab3ecbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rapier_wrapper/collider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ impl PhysicsEngine {
// less data to serialize
collider.set_collision_groups(InteractionGroups {
memberships: Group::from(mat.collision_layer),
filter: Group::from(mat.collision_layer),
filter: Group::from(mat.collision_mask),
});
collider.set_solver_groups(InteractionGroups {
memberships: Group::GROUP_1,
Expand Down

0 comments on commit ab3ecbb

Please sign in to comment.