all hail pyogenics

This commit is contained in:
TrèsAbhi authored and GitHub committed 2025-04-06 15:53:23 -05:00
1 parent c06c338536
commit 9fac6dd40d
1 file changed
+3 -3
@@ -178,14 +178,14 @@ export async function extractModel(data: string, path: string) {
new Vector3().fromArray(component['tc.worldScale']), new Vector3().fromArray(component['tc.worldScale']),
), ),
new Matrix4().compose( new Matrix4().compose(
new Vector3().fromArray(component['tc.localTranslation']), new Vector3().fromArray(),
new Quaternion().fromArray(component['tc.localRotation']), new Quaternion().fromArray(),
new Vector3().fromArray(component['tc.localScale']), new Vector3().fromArray(component['tc.localScale']),
), ),
) )
.decompose(translation, rotation, scale); .decompose(translation, rotation, scale);
node.setTranslation(translation.toArray()); node.setTranslation(component['tc.localTranslation']);
node.setRotation(rotation.toArray() as Vector4Tuple); node.setRotation(rotation.toArray() as Vector4Tuple);
node.setScale(scale.toArray()); node.setScale(scale.toArray());