use bevy::prelude::*; use bevy_mod_transform2d::prelude::*; use bevy_xpbd_2d::{math::*, prelude::*}; fn main() { App::new() .insert_resource(Gravity(Vector::NEG_Y * 1000.)) .add_plugins(( DefaultPlugins, Transform2dPlugin, PhysicsPlugins::default(), PhysicsDebugPlugin::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