Closed toji closed 6 years ago
Oops, double review comments above -- I attempted this before but couldn't remember what issues I ran into -- checking the tests there's a failure at: (function (exports, require, module, __filename, __dirname) { import * as glMatrix from "./common.js";
Looks like we'll need to manually transform the dependency unfortunately -- I hope that not excluding gl-matrix here -- and suspect the module build may have an issue as well. If this works I'll be very exciting :)
With #18's build changes, this should now work
Rebased this patch onto #18 and fixed the tests. Thank for updating the build system!
I think the commits need a squash (due to different ordering from master), but other than that, should be good to land!
Squashed and merged!
Verified that this ends up having effectively zero impact on size due to tree shaking. Using the library directly rather than porting individual functions over piecemeal will make it easier to add more mathematically challenging features in the future, such as arm modeling for 3DoF controllers (which I have almost completed porting from Boris' RayInput library.)