aboutsummaryrefslogtreecommitdiff
path: root/examples2d
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2022-08-14 16:01:56 +0200
committerGitHub <noreply@github.com>2022-08-14 16:01:56 +0200
commit1fca30c285ce1b7b955bdfc710835a652822cd51 (patch)
tree06950e41f5c63d876a215203ff488e5e4ffe0ce6 /examples2d
parent68d250f0ad80bb2e5e10e43f2fd1b8824e2a1216 (diff)
parent911493e6d8207c226183157e3ab866bd7a344f7a (diff)
downloadrapier-1fca30c285ce1b7b955bdfc710835a652822cd51.tar.gz
rapier-1fca30c285ce1b7b955bdfc710835a652822cd51.tar.bz2
rapier-1fca30c285ce1b7b955bdfc710835a652822cd51.zip
Merge pull request #385 from tguichaoua/interaction_group_bitflags
bitflags for InteractionGroups
Diffstat (limited to 'examples2d')
-rw-r--r--examples2d/collision_groups2.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples2d/collision_groups2.rs b/examples2d/collision_groups2.rs
index 707696c..f84f139 100644
--- a/examples2d/collision_groups2.rs
+++ b/examples2d/collision_groups2.rs
@@ -24,8 +24,8 @@ pub fn init_world(testbed: &mut Testbed) {
/*
* Setup groups
*/
- const GREEN_GROUP: InteractionGroups = InteractionGroups::new(0b01, 0b01);
- const BLUE_GROUP: InteractionGroups = InteractionGroups::new(0b10, 0b10);
+ const GREEN_GROUP: InteractionGroups = InteractionGroups::new(Group::GROUP_1, Group::GROUP_1);
+ const BLUE_GROUP: InteractionGroups = InteractionGroups::new(Group::GROUP_2, Group::GROUP_2);
/*
* A green floor that will collide with the GREEN group only.