expo-three-orbit-controls
expo-three-orbit-controls copied to clipboard
WARN THREE.Quaternion: .inverse() has been renamed to invert().
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!
same issue here
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.
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!
Can we get this change in the package? Is this project abandoned?
for the moment we can fork this repo and do that change manually.
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
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.
modify Quaternion's prototype can fix this
Quaternion.prototype.inverse = function () { return this.invert() }