After upgrading to BJS 5.21.0, I got this error right away in my game:
Failed to execute 'arc' on 'CanvasRenderingContext2D': The radius provided (-0.434) is negative.
The stack trace isn’t the most useful, but here’s what I do have that might help (the line numbers obv do not):
at t._drawRoundedRect @ babylonBundle.js:2 t._localDraw @ babylonBundle.js:2 t._draw @ babylonBundle.js:2 e._render @ babylonBundle.js:
My best guess is that it’s in the GUI system, as there are two rectangles that the GUI draws around meshes, and they both have rounded corners
I’d tested the same commit (without the package updates) without any issue, so the evidence points towards something being different in the versions of BJS.
Really glad that I split those package updates into their own commit, otherwise the v1.0 of Space-Truckers might be blocked!