This commit is contained in:
gpt-engineer-app[bot]
2026-02-28 18:49:33 +00:00
parent d6064be80b
commit 29316cdf21
4 changed files with 131 additions and 16 deletions
+3 -1
View File
@@ -114,7 +114,9 @@ function GLBModel({ url }: { url: string }) {
});
}, [scene, opacity, renderMode, checklist, wireframeColor, wireframeThickness, edgeThresholdAngle]);
const rotXRad = (fineTuning.rotX * Math.PI) / 180;
const rotYRad = (fineTuning.rotY * Math.PI) / 180;
const rotZRad = (fineTuning.rotZ * Math.PI) / 180;
return (
<group
@@ -124,7 +126,7 @@ function GLBModel({ url }: { url: string }) {
-modelInfo.center.y + fineTuning.posY,
-modelInfo.center.z + fineTuning.posZ,
]}
rotation={[0, rotYRad, 0]}
rotation={[rotXRad, rotYRad, rotZRad]}
>
<primitive object={scene} />
</group>