From 73c8807f14579a9fd191a4c7bcbd23cc9b23ce58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sun, 6 Apr 2025 16:03:04 -0500 Subject: [PATCH] no, no, no, NOW all hail pyogenics i messed up the last time --- .../src/core/blitz/extractModel/index.ts | 23 ++----------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/packages/scripts/src/core/blitz/extractModel/index.ts b/packages/scripts/src/core/blitz/extractModel/index.ts index 0922e971c..2f1343657 100644 --- a/packages/scripts/src/core/blitz/extractModel/index.ts +++ b/packages/scripts/src/core/blitz/extractModel/index.ts @@ -166,28 +166,9 @@ export async function extractModel(data: string, path: string) { break; case 'TransformComponent': { - const translation = new Vector3(); - const rotation = new Quaternion(); - const scale = new Vector3(); - - new Matrix4() - .multiplyMatrices( - new Matrix4().compose( - new Vector3().fromArray(component['tc.worldTranslation']), - new Quaternion().fromArray(component['tc.worldRotation']), - new Vector3().fromArray(component['tc.worldScale']), - ), - new Matrix4().compose( - new Vector3().fromArray(), - new Quaternion().fromArray(), - new Vector3().fromArray(component['tc.localScale']), - ), - ) - .decompose(translation, rotation, scale); - node.setTranslation(component['tc.localTranslation']); - node.setRotation(rotation.toArray() as Vector4Tuple); - node.setScale(scale.toArray()); + node.setRotation(component['tc.localRotation']); + node.setScale(component['tc.localScale']); break; }