I am writing a simple game using Box2d-Jquery. By default the position of the DOM elements can be handled by clicking and dragging those corresponding elements. How can this mouse event be disabled so that the movement of the elements is not disturbed by any mouse clicks? Thanks in advance.
Share
I’m afraid you could comment the method body
this method will create mouse joint which is supported by box2d to handle mouse event on the bodies in the world.
Or just comment the invoke to updateMouseDrag() in method update(). update() is the game loop method.