Stefan Hedman
Stefan Hedman
I haven’t debugged this, but my guess is that it’s about a p2.Plane shape. There’s [optimized code paths for vertical/horizontal planes](https://github.com/schteppe/p2.js/blob/6d01338f6773b383db58d4d2fdf481dd6a6c18c5/src/shapes/Plane.js#L48), and they had bugs in them at one point......
Okay, thanks. If I succeed to manually port these functions from the Box2D C++ code, I'll send you a pull request. Another question: how do I compile the files in...
OK, thanks :)
After working some more with this, I realized there is nothing wrong with the constructors. I can use the two first constructors without problem, see my double pendulum at: http://granular.cs.umu.se/ammo/Demos/PendulumDemo/...
@RodrigoHamuy it was a loooong time ago... Don't really remember. If I solved it back then, you can probably find the solution here: https://github.com/schteppe/ammo.js-demos
Probably difficult. As far as I know, the only way to do multithreading in JS is Web Workers. This means that each parallel job or api call needs to be...
Right now it's an acceleration vector. I quickly looked through the implementation in Bullet and it looks like they use force. I guess force is the way to go then?...
Hey @lighterletter, Not sure if this is what you need, but have you checked out the callbacks demo? It has a radial gravity field. http://schteppe.github.io/cannon.js/demos/callbacks.html Thanks
Hi, it looks like you apply a force to the body, I'm not sure what your force does? If you want gravity to pull towards the center sphere, just add...
Strange! Do you have a working example scene?