Skip to content

Instantly share code, notes, and snippets.

@svenstaro
Created October 19, 2014 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svenstaro/e25bbfb328a133c4698a to your computer and use it in GitHub Desktop.
Save svenstaro/e25bbfb328a133c4698a to your computer and use it in GitHub Desktop.
pub fn update(&mut self, args: &UpdateArgs) {
for &mut position in self.positions.iter() {
position.append_translation(&Vec2::new(50f64, 0.0));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment