diff --git a/examples/demo/src/main.rs b/examples/demo/src/main.rs index bfda631..f8adf6a 100644 --- a/examples/demo/src/main.rs +++ b/examples/demo/src/main.rs @@ -6,12 +6,11 @@ use bevy::{ log::info, prelude::{ default, shape, App, Assets, Color, Commands, Component, Entity, Event, EventReader, - EventWriter, FixedUpdate, GlobalTransform, IntoSystemConfigs, - IntoSystemSetConfigs, Mesh, PbrBundle, PostUpdate, Quat, Query, Res, ResMut, Resource, - Schedule, SpatialBundle, StandardMaterial, Startup, Transform, Update, Vec3, With, Without, - World, Vec3Swizzles, + EventWriter, FixedUpdate, Gizmos, GlobalTransform, IntoSystemConfigs, IntoSystemSetConfigs, + Mesh, PbrBundle, PostUpdate, Quat, Query, Res, ResMut, Resource, Schedule, SpatialBundle, + StandardMaterial, Startup, Transform, Update, Vec3, Vec3Swizzles, With, Without, World, }, - time::{Time, Timer, Fixed}, + time::{Fixed, Time, Timer}, transform::TransformSystem, }; use bevy_openxr::{ @@ -129,7 +128,9 @@ fn main() { .in_set(PhysicsSet::Writeback), )); app.add_schedule(physics_schedule) // configure our fixed timestep schedule to run at the rate we want - .insert_resource(Time::::from_duration(Duration::from_secs_f32(FIXED_TIMESTEP))) + .insert_resource(Time::::from_duration(Duration::from_secs_f32( + FIXED_TIMESTEP, + ))) .add_systems(FixedUpdate, run_physics_schedule) .add_systems(Startup, configure_physics); app.run(); @@ -302,7 +303,7 @@ fn spawn_physics_hands(mut commands: Commands) { ), RigidBody::KinematicVelocityBased, Velocity::default(), - CollisionGroups::new(Group::from_bits(0b1110).unwrap(), Group::from_bits(0b0001).unwrap()), + // CollisionGroups::new(Group::from_bits(0b1110).unwrap(), Group::from_bits(0b0001).unwrap()), // SolverGroups::new(self_group, interaction_group), bone.clone(), BoneInitState::False, @@ -329,6 +330,7 @@ fn update_physics_hands( )>, hand_query: Query<(&Transform, &HandBone, &Hand, Without)>, time: Res