Skip to content

Commit

Permalink
remove vulkan from default backend
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-tennert committed Oct 24, 2023
1 parent 989384a commit 1f453e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fn main() {
.add_plugins(DefaultPlugins
.set(RenderPlugin {
wgpu_settings: WgpuSettings {
backends: Some(Backends::VULKAN),
// backends: Some(Backends::VULKAN),
..default()
},
})
Expand Down
6 changes: 3 additions & 3 deletions src/rotation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ fn axial_tilt_planets(
let (u, w) = (transform.translation - p_transform.translation)
.normalize()
.any_orthonormal_pair();
let u_p = Quat::from_axis_angle(w, tilt.num.to_radians()).mul_vec3(u);
// let u_p = Quat::from_axis_angle(w, tilt.num.to_radians()).mul_vec3(u);
let tilted = Quat::from_axis_angle(Vec3::X, tilt.num.to_radians()) * Vec3::Z;
// transform.rotate_axis(u_p, 0.0);
transform.rotate_x((90.0 as f32).to_radians());
// transform.rotate_y(tilt.num.to_radians());
// transform.rotate_x(tilt.num.to_radians());
tilt.applied = true;
tilt.axis = Some(u_p);
tilt.axis = Some(tilted);
}
}
}
Expand All @@ -67,7 +67,7 @@ fn rotate_bodies(
let rotation_duration = rotation_speed.0 * 60.0;
let rotations_per_day = DAY_IN_SECONDS / (rotation_duration as f32);

// transform.rotate_axis(axis.axis.unwrap(), 2.0 * PI * (rotations_per_day * time.delta_seconds() * speed_modifier));
// transform.rotate_axis(axis.axis.unwrap(), 2.0 * PI * (rotations_per_day * time.delta_seconds() * speed_modifier));
transform.rotate_z(2.0 * PI * (rotations_per_day * time.delta_seconds() * speed_modifier));

}
Expand Down

0 comments on commit 1f453e1

Please sign in to comment.