improve wiggling

This commit is contained in:
2025-05-03 23:22:54 +02:00
parent 25cd3356b6
commit de0d4a7b9c
2 changed files with 2 additions and 1 deletions

View File

@@ -60,8 +60,9 @@ fn rotate_rig(
fn movement(
mut controllers: Query<(&MovementSpeed, &mut LinearVelocity)>,
rig_transform_q: Option<Single<&GlobalTransform, With<PlayerBodyMesh>>>,
time: Res<Time>,
) {
let move_dir = Vec2::new(0.0, 0.8); // Always full-throttle forwards when flying
let move_dir = Vec2::new(0.0, 50.) * time.delta_secs();
for (movement_acceleration, mut linear_velocity) in &mut controllers {
let mut direction = move_dir.extend(0.0).xzy();