From 4b497b8c3b706cf476cfa34180fc2d61080c4e54 Mon Sep 17 00:00:00 2001 From: mister-ben Date: Mon, 11 Dec 2023 12:42:33 +0000 Subject: [PATCH] Math -> MathUtils --- .husky/pre-commit | 4 ---- vendor/three/DeviceOrientationControls.js | 8 ++++---- 2 files changed, 4 insertions(+), 8 deletions(-) delete mode 100755 .husky/pre-commit diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100755 index 28ddea2a..00000000 --- a/.husky/pre-commit +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -node_modules/.bin/lint-staged diff --git a/vendor/three/DeviceOrientationControls.js b/vendor/three/DeviceOrientationControls.js index a74e99f8..dc70a529 100644 --- a/vendor/three/DeviceOrientationControls.js +++ b/vendor/three/DeviceOrientationControls.js @@ -88,13 +88,13 @@ const DeviceOrientationControls = function ( object ) { if ( device ) { - var alpha = device.alpha ? THREE.Math.degToRad( device.alpha ) + scope.alphaOffset : 0; // Z + var alpha = device.alpha ? THREE.MathUtils.degToRad( device.alpha ) + scope.alphaOffset : 0; // Z - var beta = device.beta ? THREE.Math.degToRad( device.beta ) : 0; // X' + var beta = device.beta ? THREE.MathUtils.degToRad( device.beta ) : 0; // X' - var gamma = device.gamma ? THREE.Math.degToRad( device.gamma ) : 0; // Y'' + var gamma = device.gamma ? THREE.MathUtils.degToRad( device.gamma ) : 0; // Y'' - var orient = scope.screenOrientation ? THREE.Math.degToRad( scope.screenOrientation ) : 0; // O + var orient = scope.screenOrientation ? THREE.MathUtils.degToRad( scope.screenOrientation ) : 0; // O setObjectQuaternion( scope.object.quaternion, alpha, beta, gamma, orient );