R/move_boids.R

Defines functions move_boids

move_boids <- function(b) {
  b$pos_x <- b$pos_x + b$vel_x * 0.05
  b$pos_y <- b$pos_y + b$vel_y * 0.05
  b
}
juliangrimm225/boids documentation built on May 16, 2022, 12:24 a.m.