Skip to content

Commit

Permalink
Math -> MathUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
mister-ben committed Dec 11, 2023
1 parent e5c98ee commit 4b497b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

8 changes: 4 additions & 4 deletions vendor/three/DeviceOrientationControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit 4b497b8

Please sign in to comment.