kubi/kubi-shared/src/transform.rs

11 lines
245 B
Rust
Raw Normal View History

2023-01-20 14:55:02 -06:00
use shipyard::Component;
2023-02-08 21:11:15 -06:00
use glam::{Mat4, Mat3};
2023-01-20 13:40:08 -06:00
2023-01-20 14:55:02 -06:00
#[derive(Component, Clone, Copy, Debug, Default)]
#[track(All)]
pub struct Transform(pub Mat4);
2023-02-08 21:11:15 -06:00
#[derive(Component, Clone, Copy, Debug, Default)]
#[track(All)]
pub struct Transform2d(pub Mat3);