🚀 Auto-deploy: melhoria no snap e medição AR em 03/06/2026 10:31:54
This commit is contained in:
@@ -131,6 +131,10 @@ export function XRControllerMeasure() {
|
||||
if (!pose) return;
|
||||
|
||||
const m = new THREE.Matrix4().fromArray(pose.transform.matrix);
|
||||
const xrRig = useModelStore.getState().xrRig;
|
||||
if (xrRig) {
|
||||
m.premultiply(xrRig.matrixWorld);
|
||||
}
|
||||
tmpOrigin.current.setFromMatrixPosition(m);
|
||||
tmpQuat.current.setFromRotationMatrix(m);
|
||||
tmpDir.current.set(0, 0, -1).applyQuaternion(tmpQuat.current).normalize();
|
||||
|
||||
Reference in New Issue
Block a user