copy goes brr ig

main
Zynh Ludwig 2024-09-01 21:12:49 -07:00
parent 901a936e18
commit 3a3cfccd7d
1 changed files with 2 additions and 2 deletions

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 bottom_bound = -half_height;
for boid_transform in &mut boids {
let mut translation = boid_transform.translation;
for mut boid_transform in &mut boids {
let translation = &mut boid_transform.translation;
if translation.y > top_bound {
translation.y = bottom_bound;