You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the ES6 import from Oimo, and I'm getting an error that seems to be deep within the prebuilt oimo.module.js:
Uncaught ReferenceError: OIMO is not defined
at eval (eval at evaluate (:117:21), <anonymous>:1:1)
at BoxShape.updateProxy (http://192.168.128.125:8888/js/main.js:50564:13)
at RigidBody.syncShapes (http://192.168.128.125:8888/js/main.js:54910:19)
at RigidBody.setupMass (http://192.168.128.125:8888/js/main.js:54703:14)
at World.add (http://192.168.128.125:8888/js/main.js:55873:22)
...
So my code clearly sees OIMO, and it's been included using Rollup+NodeResolve+CommonJS. But the Oimo code apparently is assuming an OIMO global variable, which doesn't exist.
A bit of grepping finds only one more place that an OIMO global is expected in oimo.module.js here:
if(r[n2+0]) {
var q = new Quat().setFromAxis( r[n2], r[n2+1], r[n2+2], r[n2+3] );
//var q = body.rotationAxisToQuad( r[0], r[1], r[2], r[3] );
shapes[i].relativeRotation = new OIMO.Mat33().setQuat(q);
}
Looks like relatively simple fixes? For now I'm patching window.OIMO to point to OIMO.
The text was updated successfully, but these errors were encountered:
Hi,
I'm using the ES6 import from Oimo, and I'm getting an error that seems to be deep within the prebuilt
oimo.module.js
:So my code clearly sees OIMO, and it's been included using Rollup+NodeResolve+CommonJS. But the Oimo code apparently is assuming an
OIMO
global variable, which doesn't exist.A bit of grepping finds only one more place that an
OIMO
global is expected inoimo.module.js
here:Looks like relatively simple fixes? For now I'm patching window.OIMO to point to OIMO.
The text was updated successfully, but these errors were encountered: