From bbe19c6e6274b9b383ce12bdf68e9209bea6b263 Mon Sep 17 00:00:00 2001 From: Mark Rickert Date: Mon, 18 Mar 2024 17:02:45 -0600 Subject: [PATCH] Fix deprecated method name in latest versions of THREE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I’m using the latest version of THREE in my branch (pr coming soon to expo-three) and this was required to get the orbit controls working since `Quaternion.invert()` was changed to `Quaternion.inverse()` in version 0.142.0 --- src/OrbitControls.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OrbitControls.ts b/src/OrbitControls.ts index ab5190e..f33e0e3 100755 --- a/src/OrbitControls.ts +++ b/src/OrbitControls.ts @@ -217,7 +217,7 @@ export class OrbitControls extends EventDispatcher { this.object.up, new Vector3(0, 1, 0) ); - const quatInverse = quat.clone().invert(); + const quatInverse = quat.clone().inverse(); const lastPosition = new Vector3(); const lastQuaternion = new Quaternion();