Changes
This commit is contained in:
@@ -108,7 +108,9 @@ function XRModel({ 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
|
||||
@@ -118,7 +120,7 @@ function XRModel({ 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>
|
||||
|
||||
Reference in New Issue
Block a user