use nalgebra as na; #[derive(Debug, Clone)] pub struct Player { pub position: na::Vector2, pub velocity: na::Vector2, } impl Player { /// Construct a new player. pub fn new(position: na::Vector2) -> Self { Self { position, velocity: na::Vector2::zeros(), } } }