copy goes brr ig

This commit is contained in:
Zynh Ludwig 2024-09-01 21:12:49 -07:00
parent 901a936e18
commit 3a3cfccd7d

View file

@ -44,8 +44,8 @@ fn boid_border_teleport(mut boids: Query<&mut Transform, With<Boid>>, windows: Q
let top_bound = half_height; let top_bound = half_height;
let bottom_bound = -half_height; let bottom_bound = -half_height;
for boid_transform in &mut boids { for mut boid_transform in &mut boids {
let mut translation = boid_transform.translation; let translation = &mut boid_transform.translation;
if translation.y > top_bound { if translation.y > top_bound {
translation.y = bottom_bound; translation.y = bottom_bound;