BabylonJS / havok

The Havok Physics plugin runtime files (wasm and js)
16 stars 4 forks source link

202307 update #3

Closed eoineoineoin closed 1 year ago

eoineoineoin commented 1 year ago

Adds a variety of improvements to the WASM. Interface is backwards-compatible.

RaananW commented 1 year ago

@carolhmj - for the time being we still need to copy this to our main repo in order to have the playground updated. I will release an npm package after merging this, waiting for your review :-)

eoineoineoin commented 1 year ago

Yeah, it's a bit of a pain to test; I've just been copying the wasm into Babylon.js/packages/tools/babylonServer/public/havok/, editing the playground index.html to pull the wasm from localhost, and then running the playground.

To test the new methods, I just get the "_hknp" wasm out of the HavokPlugin instance and call methods on that directly. Obviously, we'll want to add user-friendly access to those methods from JS at some point, but not sure if there's a better way to test?

RaananW commented 1 year ago

yes - this needs to be simplified. I guess we can add some tests here in this repo, taking babylon as a dependency (and not the other way around :-)) I'll add a task for me to find a nice way without too much manual work.