use bevy::prelude::*; use bevy_mod_transform2d::prelude::*; use bevy_rapier2d::prelude::*; fn main() { App::new() .add_plugins(( DefaultPlugins, Transform2dPlugin, RapierPhysicsPlugin::::default().with_physics_scale(100.), RapierDebugRenderPlugin::default(), )) .add_systems(Startup, setup) .add_systems(Update, rotate_platform) .run(); } #[derive(Component)] struct Platform; fn rotate_platform(mut platform: Query<&mut Transform2d, With>, time: Res