Jonathan Hale
Jonathan Hale
Will a free function in `BulletIntegration` namespace suffice?
Bullet does allow for 2D physics (see their example [here](https://github.com/bulletphysics/bullet3/tree/master/examples/Planar2D)), you basically register some 2D collision algorithms to the collision dispatcher, but still have to use 3D vectors it seems....
Btw, for reference: I remember the way to do 2D in bullet is to add a bunch of contstraints to the Z axis of all the rigid bodies.
@martinetd Would be awesome if you could create that PR! :) Small note: It seems to fail for let inside `for`, e.g.: ```js let size = 2; // works great...
@svaarala I tried to take @martinetd's diff and add a test case, but I'm still pretty lost on this: https://github.com/svaarala/duktape/compare/master...Squareys:let-support?expand=1 The `ecmatest` seem to be failing on current master. Is...
@e2iplayer Great, yeah, I have that above link to the diff. Wasn't able to put more time into this, sorry!
@e2iplayer Uhm, it works fine for me 🤔 Otherwise use https://github.com/Squareys/duktape/tree/let-support
FWIW, I did an evening of profiling for our use case (i.e. linking the main .wasm of the [Wonderland Engine](https://wonderlandengine.com) runtime) and found that using the following structure instead of...
@MaxGraey `small_set` calls the default constructor of `std::set`, so it wouldn't remove the heap allocation 🤔 (That the heap allocation is the culprit was found through a sampling profiler (i.e....
@MaxGraey Definitely, that would probably also improve other code that already uses small_set 👍 There also was a bunch of heap allocations around `BasicBlock` btw, I think the factory function...