copy goes brr ig
This commit is contained in:
parent
901a936e18
commit
3a3cfccd7d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue