Stefan Harr
Stefan Harr
You're already refactoring the core, right? :) The contacts and friction equations need to be re-added each step. If you have a better idea, it is welcome. I still think...
Oh, sorry, the answer is yes. After the step equations are not used any more. And wlambda+vlambda on the bodies should be reset as well. Equations are pretty cool, indeed....
https://github.com/schteppe/p2.js/releases ?
The first thing that comes to my mind is, why not use the built in p2 top down vehicle? I guess it's less complex than your own physics but it...
Well, the vehicle is new, no wonder you didn't notice it. It's not ben tested much but it should work. Let me know how it goes :)
Hi, you have to adjust the relaxation time of the contacts to make them stable. The default relaxation time is 4 time steps, which makes the contacts nice at frame...
Not a good idea I think. A global constant should never change. The .relaxation property of equations needs to be taken care of as well. Not sure if it can...
Hi, If you clone and build the latest version, you can now use body.collisionResponse. Set it to false and collisions with this body will do nothing. However, they will trigger...
Hi, The solution for this is probably CCD. And I've just gotten it to work with p2. Get the latest master branch, build and see demos/ccd.html.
Try using a smaller time step, or activating CCD. Not sure how to solve it otherwise right now. Using objects of approximately the same size would probably also help. And...