Stefan Hedman
Stefan Hedman
Strange.. I started off by re-making the scene in the Cannon.js debug renderer. The code follows. ``` html cannon.js - convex demo /** * Experiment for testing ConvexPolyhedrons. */ var...
That would be nice to have, but it's not currently implemented. In [p2.js](https://github.com/schteppe/p2.js) I've implemented the `beginContact` and `endContact` events, which should be quite easy to remake in cannon.js. The...
If you only check the body pairs that already are in contact (given by the collide event) you should probably be okay. If you don't need to do it every...
@Deminetix I just added beginContact and endContact events. Care to try them? Thanks.
I'm assuming you want an event on the body? In that case, not yet! I think it would require events on all the shapes as well.
Yeah, that's probably correct. Thanks!
Very strange. I tested this in Goo engine, and it seemed to fire for all sorts of static/dynamic/kinematic combinations... Which shapes do you use? I didn't change the coordinate system,...
Preferable yes - but reusing the event objects creates less garbage for the GC.
Are you sure the friction is applied at all? If you tilt the gravity direction, does the player slide (it should not)? See the [friction demo](http://schteppe.github.io/cannon.js/demos/friction.html). Velocity based movement is...
That looks very weird... Can you give me the faces and vertices data so I can debug this?