Major Refactor: separate project into multiple crates

This commit is contained in:
reo 2025-07-17 23:19:46 +03:00
parent f943e4c945
commit d0440f3da3
24 changed files with 209 additions and 2232 deletions

17
raidillon_ecs/src/lib.rs Normal file
View file

@ -0,0 +1,17 @@
use glam::{Mat4, Quat, Vec3};
#[derive(Copy, Clone)]
pub struct Transform {
pub translation: Vec3,
pub rotation: Quat,
pub scale: Vec3,
}
impl Transform {
pub fn matrix(&self) -> Mat4 {
Mat4::from_scale_rotation_translation(self.scale, self.rotation, self.translation)
}
}
#[derive(Clone)]
pub struct ModelHandle(pub usize);