1 decade ago by zarniwoop
Hey Guys
I just started looking into the box2d example, and I was doing some reading of the manual and the refference to the javascript implementation.
In my game i want to have a body which most of the time responds to physics, but certain times ignores it, and i want to know if this is possible with impact and box2d to do this in an elegant way?
I saw that generally you could add en event listener to the preSolve event which fires before the physics for a collision is solved, but couldnt find it in the lib.js file.
I just started looking into the box2d example, and I was doing some reading of the manual and the refference to the javascript implementation.
In my game i want to have a body which most of the time responds to physics, but certain times ignores it, and i want to know if this is possible with impact and box2d to do this in an elegant way?
I saw that generally you could add en event listener to the preSolve event which fires before the physics for a collision is solved, but couldnt find it in the lib.js file.