1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
use shipyard::EntityId;
use crate::math::*;

pub struct TransformRoot(pub EntityId);

#[derive(Debug)]
pub struct Translation(pub Vec3);
#[derive(Debug)]
pub struct Rotation(pub Quat);
#[derive(Debug)]
pub struct Scale(pub Vec3);
#[derive(Debug)]
pub struct LocalTransform(pub Matrix4);
#[derive(Debug)]
pub struct WorldTransform(pub Matrix4);
#[derive(Debug)]
pub struct DirtyTransform(pub bool);