From 4505fb6585885866ff9a76f76c00ed727d3bb818 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Tue, 30 Jul 2024 15:46:38 +1000 Subject: wip --- src/maths/maths.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/maths/maths.h') diff --git a/src/maths/maths.h b/src/maths/maths.h index 5055637..0b3760e 100644 --- a/src/maths/maths.h +++ b/src/maths/maths.h @@ -311,13 +311,7 @@ static Transform transform_create(Vec3 pos, Quat rot, f32 scale) { return (Transform){ .position = pos, .rotation = rot, .scale = scale, .is_dirty = true }; } -static Mat4 transform_to_mat(Transform *tf) { - Mat4 scale = mat4_scale(tf->scale); - Mat4 rotation = mat4_rotation(tf->rotation); - Mat4 translation = mat4_translation(tf->position); - return mat4_mult(translation, mat4_mult(rotation, scale)); - // return mat4_mult(mat4_mult(scale, rotation), translation); -} + Mat4 transform_to_mat(Transform *tf); // --- Sizing asserts -- cgit v1.2.3-70-g09d2