@pmndrs/handle
Advanced tools
Comparing version 6.4.12-alpha.33 to 6.4.12-alpha.36
@@ -43,3 +43,3 @@ import { Euler, Matrix4, Plane, Quaternion, Vector3 } from 'three'; | ||
const order = axisFirstOrder[rotateOptions]; | ||
rotation = new Euler().setFromQuaternion(quaternion); | ||
rotation = new Euler().setFromQuaternion(quaternion, order); | ||
for (const orderElement of order) { | ||
@@ -117,3 +117,2 @@ const axis = orderElement.toLowerCase(); | ||
currentRotation.setFromEuler(result); | ||
result.setFromQuaternion(currentRotation, initialRotation.order); | ||
return result; | ||
@@ -120,0 +119,0 @@ } |
@@ -246,4 +246,5 @@ import { Euler, Object3D, Quaternion, Vector3 } from 'three'; | ||
target.position.copy(state.current.position); | ||
target.rotation.order = state.current.rotation.order; | ||
target.quaternion.copy(state.current.quaternion); | ||
target.scale.copy(state.current.scale); | ||
} |
@@ -7,3 +7,3 @@ { | ||
"homepage": "https://github.com/pmndrs/xr", | ||
"version": "6.4.12-alpha.33", | ||
"version": "6.4.12-alpha.36", | ||
"keywords": [ | ||
@@ -24,3 +24,3 @@ "r3f", | ||
"dependencies": { | ||
"@pmndrs/pointer-events": "^6.4.12-alpha.33" | ||
"@pmndrs/pointer-events": "^6.4.12-alpha.36" | ||
}, | ||
@@ -27,0 +27,0 @@ "files": [ |
11
11
11
11
63305
+ Added@pmndrs/pointer-events@6.5.4(transitive)
- Removed@pmndrs/pointer-events@6.5.2(transitive)