improve wiggling
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user