Sorry, thereās no Physics API exposed and the underlying Matter.js is fully encapsulated as well as minified so thereās no way to access its structures (at least, without dramatic hacking and knowing how items are minified, meaning more WTF moments
).
Weāre generally conservative when it comes to adding API as we know weāll need to support it forever. In the case of Physics, Iām in no way against adding API, but would want a good sense of what users are making with Hype and use cases for the API.
A good argument could be made that we should expose Matter.js, though at this time Iām still favoring flexibility for our Physics engine; you can think of our usage as an āimplementation detail.ā