Scharn
Scharn
p2.js is a physics engine. It is not meant to show objects on the screen. The simpliest way I can think of is just to draw dots or circles on...
The Particle is slightly faster than the Circle. In my current stress test which involves shooting bodies in random directions from a centre of square, walled-off arena, I am testing...
Wow, and this is not a little difference... this is like 20fps for box2dweb on stress test vs 1-2 fps on p2.js. It is even worse on firefox and Edge...
It all depends on implementation. If Box2D is just written using faster algorithms, machine optimization won't hurt it too much. I am pretty sure, however, that about a year ago,...
I did not test my app with other physics engines. I am not sure if it is worth it, this is quite a job to rewire it even if methods...
I have a fully operational web worker integration in my "eventually-might-be-an-engine" thing, but it does have some flaws. Most importantly, the input lag. If I reduce physics iterations below 60,...
I do send data as binary format (Float32Array in my case), but I reuse the same array and don't use transferrable. I'll check if it makes a difference. I wouldn't...
Simply `import 'pixi-layers'` and then `new PIXI.display.Layer()` works.