odyssey-server/src/game/components/transform.rs

14 lines
232 B
Rust

use super::math::Point;
use specs::{Component, VecStorage};
#[derive(Debug)]
pub struct Transform {
pub position: Point,
pub rotation: f32,
pub scale: Point,
}
impl Component for Transform {
type Storage = VecStorage<Self>;
}