Stefan Hedman
Stefan Hedman
Ok! Looks like I used the built in stuff in Pixi.js to do convert to physics space: https://github.com/schteppe/p2.js/blob/85c93c9d77d3f23145238a541a07902d68615a8c/demos/js/WebGLRenderer.js#L178 Before I was using an own implementation (stagePositionToPhysics) to compute the physics...
That demo is sort of a stress test - stacking and many contacts is bound to be slow... You can do many things to reduce CPU load. For example, reduce...
There are always optimizations that can be done! :) One thing that could help is simd.js, but I didn't have much luck with that yet. A demo that shows how...
Optional web worker runner? Don't think so. Too much work. First problem is to figure out how to wrap the API, how to reference bodies/shapes/etc in the other thread, etc......
This was a long read, lol. I'll just throw out some ideas and maybe you could use something from them. Maybe you want something like [this demo](http://piqnt.com/stage.js/example/satjs-example/)? It uses SAT.js...
No problem. I hope you can get the result you want. For SAT.js you would need to add all the objects you want to collide with, yes.
At the moment, that is correct. I've implemented per-shape friction + restitution in Cannon.js, which seem to work well. In that case, the final friction value is the product of...
Yep. You're right about the box2d ports, they aren't that good. Some of them don't contain all the features from the original project either. But that's where p2 comes in...
Wow, duals.io looks really cool! But I see you built it using pixi.js, but I see no p2.js in the client? Maybe it's only server side? p3.js would be a...
Sounds kinda good :) I'll add at least add links between cannon and p2 in their readme's in any case. By the way, let's keep this issue open until per-shape...