I want to draw a sprite while drawing using debug draw method.
so,I want to reference a body to know whether it is the shape I wanted or not .How can I reference a body in the customizeVTable method.Further I wanted to know what is 'ths' referring to in the following code.How can we use it .
I want to draw a sprite while drawing using debug draw method. so,I want to reference a body to know whether it is the shape I wanted or not .How can I reference a body in the customizeVTable method.Further I wanted to know what is 'ths' referring to in the following code.How can we use it .
Box2D.customizeVTable(debugDraw, [{ original: Box2D.b2Draw.prototype.DrawSegment, replacement: function(ths, vert1, vert2, color) { alert('called'); } }]);
can someone help regarding this.