gkjohnson / three-mesh-bvh

A BVH implementation to speed up raycasting and enable spatial queries against three.js meshes.
https://gkjohnson.github.io/three-mesh-bvh/example/bundle/raycast.html
MIT License
2.56k stars 268 forks source link

three 123 remove getInverse() #155

Closed arpu closed 4 years ago

arpu commented 4 years ago

Hey,

after update todays threejs 123 release i found https://github.com/mrdoob/three.js/wiki/Migration-Guide#r122--r123

gkjohnson commented 4 years ago

Yes those lines need to be updated -- if you'd like to make a PR I'd be happy to merge it in!

As far as I know we need to change the following:

matrixInv.getInverse( matrix );

to

matrixInv.copy( matrix ).invert();

And the three.js peer dependency will have to change to v0.123.0

arpu commented 4 years ago

https://github.com/gkjohnson/three-mesh-bvh/pull/156

gkjohnson commented 4 years ago

Just published the fix in v0.3.0 to npm. Thanks again!