This repository has been archived on 2022-04-04. You can view files and clone it, but cannot push or open issues or pull requests.
2022-04-01 23:06:58 -04:00

20 lines
344 B
Rust

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