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 }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.