diff --git a/src/main.rs b/src/main.rs index 6d75746..9d0c5f9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -20,19 +20,19 @@ struct Boid; struct Velocity(Vec2); #[derive(Component, Default)] -struct SeperationCache(Vec2); +struct SeperationAcceleration(Vec2); #[derive(Component, Default)] -struct CohesionCache(Vec2); +struct CohesionAcceleration(Vec2); #[derive(Component, Default)] -struct AlignmentCache(Vec2); +struct AlignmentAcceleration(Vec2); #[derive(Bundle, Default)] -struct BoidCacheBundle { - s_cache: SeperationCache, - c_cache: CohesionCache, - a_cache: AlignmentCache, +struct BoidAccelerationBundle { + s_cache: SeperationAcceleration, + c_cache: CohesionAcceleration, + a_cache: AlignmentAcceleration, } #[derive(Bundle, Default)] @@ -40,10 +40,10 @@ struct BoidBundle { mesh: MaterialMesh2dBundle, velocity: Velocity, boid: Boid, - cache: BoidCacheBundle, + cache: BoidAccelerationBundle, } -fn seperation(mut boids: Query<(&Transform, &mut SeperationCache), With>) {} +fn seperation(mut boids: Query<(&Transform, &mut SeperationAcceleration), With>) {} fn move_boids(mut boids: Query<(&mut Transform, &Velocity), With>, time: Res