Skip to content

Commit

Permalink
fix: remove fetch wrap around
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchantey committed Sep 25, 2024
1 parent bd57da5 commit 5226251
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions crates/beet_examples/src/components/collectable.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use bevy::prelude::*;
use std::f32::consts::TAU;



Expand All @@ -7,13 +8,14 @@ use bevy::prelude::*;
pub struct Collectable;



const TURNS_PER_SECOND: f32 = 0.5;

pub fn rotate_collectables(
time: Res<Time>,
mut query: Query<&mut Transform, With<Collectable>>,
) {
for mut transform in query.iter_mut() {
transform.rotate(Quat::from_rotation_y(time.delta_seconds() * 0.5));
let angle = time.delta_seconds() * TAU * TURNS_PER_SECOND;
transform.rotate_y(angle);
}
}
1 change: 0 additions & 1 deletion crates/beet_examples/src/scenes/ml/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use bevy::prelude::*;


pub fn fetch_npc(mut commands: Commands) {
commands.insert_resource(WrapAround::default());

let Foxie {
graph,
Expand Down

0 comments on commit 5226251

Please sign in to comment.