expo-three-orbit-controls icon indicating copy to clipboard operation
expo-three-orbit-controls copied to clipboard

WARN THREE.Quaternion: .inverse() has been renamed to invert().

Open igorroman777 opened this issue 4 years ago • 8 comments

I am using expo-three with three.js. After updating three.js to 0.128 I get the warning:

WARN THREE.Quaternion: .inverse() has been renamed to invert().

But I have no line in my code with: .inverse()

OrbitControls uses e.g. the

var quatInverse = quat.clone().inverse();

Yes, without OrbitControlsView there is no warning!

igorroman777 avatar May 17 '21 17:05 igorroman777

same issue here

wtlyu avatar Jan 11 '22 14:01 wtlyu

FYI, Looks like a fix was merged here but i'm still getting the error as well. I've asked the maintainer why the error persist even after the MR was merged.

im-ironclad avatar Mar 24 '22 19:03 im-ironclad

I try to modify OrbitControls.js which is belong to the expo-three-orbit-controls.

Go to line 634, and I replaced inverse() to invert().

Then It works!

changken avatar Jun 06 '22 13:06 changken

Can we get this change in the package? Is this project abandoned?

aaronb97 avatar Oct 23 '22 15:10 aaronb97

for the moment we can fork this repo and do that change manually.

Leandro201927 avatar Jan 10 '23 03:01 Leandro201927

FYI, Looks like a fix was merged here but i'm still getting the error as well. I've asked the maintainer why the error persist even after the MR was merged.

You can check line 634 current release on NPM do not have the change https://www.npmjs.com/package/expo-three-orbit-controls?activeTab=code

foufrix avatar Apr 20 '23 12:04 foufrix

I try to modify OrbitControls.js which is belong to the expo-three-orbit-controls.

Go to line 634, and I replaced inverse() to invert().

Then It works!

After making this change, I can't zoom in or zoom out, the object disappears.

alperbayram avatar Jun 29 '24 13:06 alperbayram

modify Quaternion's prototype can fix this Quaternion.prototype.inverse = function () { return this.invert() }

Bosconovitchi avatar Aug 28 '24 06:08 Bosconovitchi