added collision groups, and removed rapierdebugger

This commit is contained in:
Jay Christy
2023-11-07 13:36:05 -05:00
parent a35e7b1330
commit 207766130e
2 changed files with 17 additions and 8 deletions

View File

@@ -8,7 +8,7 @@ use bevy::{
};
use bevy_openxr::xr_input::interactions::{Touched, XRInteractable, XRInteractableState};
use bevy_rapier3d::{
prelude::{Collider, RigidBody},
prelude::{Collider, RigidBody, Group, CollisionGroups},
render::ColliderDebugColor,
};
@@ -36,6 +36,7 @@ pub fn setup_scene(
},
RigidBody::Fixed,
Collider::cuboid(ground_size, ground_thickness, ground_size),
CollisionGroups::new(Group::GROUP_3, Group::ALL),
));
// cube
commands.spawn((