Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using customizeVTable #51

Closed
manideepabc opened this issue Jun 20, 2014 · 1 comment
Closed

using customizeVTable #51

manideepabc opened this issue Jun 20, 2014 · 1 comment

Comments

@manideepabc
Copy link

Box2D.customizeVTable(debugDraw, [{
original: Box2D.b2Draw.prototype.DrawSegment,
replacement:
function(ths, vert1, vert2, color) {
alert('called');
}
}]);
In the above code I'm not knowing how the parameters "ths" is a pointer .I want to know to what "ths" parameter is pointing to.

@kripken
Copy link
Owner

kripken commented Jun 20, 2014

The customizeVTable stuff is tricky and deprecated. We should update box2d
to use the new webidl bindings approach (bullet has been updated), which
would avoid this problem.

On Fri, Jun 20, 2014 at 3:40 AM, D.Manideep notifications@github.com
wrote:

Box2D.customizeVTable(debugDraw, [{
original: Box2D.b2Draw.prototype.DrawSegment,
replacement:
function(ths, vert1, vert2, color) {
alert('called');
}
}]);
In the above code I'm not knowing how the parameters "ths" is a pointer .I
want to know to what "ths" parameter is pointing to.


Reply to this email directly or view it on GitHub
#51.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants