rapier.js
rapier.js copied to clipboard
Exception thrown in drainCollisionEvents callback is silenced
This gave me hard time figuring out what's wrong with my code.
This won't propagate the error to browser context
eventQueue.drainCollisionEvents((handle1, handle2, started) => {
throw "HELLO";
});
Current workaround
eventQueue.drainCollisionEvents((handle1, handle2, started) => {
try {
throw "HELLO";
} catch (e) {
console.error(e);
}
});
Thanks for building rapier!