kubi/kubi-shared/src/transform.rs

11 lines
245 B
Rust
Raw Normal View History

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