Paril wrote:I provide a Canvas-based draw in the root of the trunk you can look at.
r3 now provides a module-based build; by default, if 'window' is there, it will define window.b2 to be the Box2D namespace (ie, b2.Vec2, b2.World, etc). If you create a global var named "b2_compatibility", it will instead use the old global method.
Which methods are missing?
-P
well the methods missing are:
debugDraw.SetDrawScale(2)
debugDraw.SetSprite(ctx);
debugDraw.SetDrawScale(scale);
debugDraw.SetFillAlpha(fillAlpha);
debugDraw.SetAlpha(globalAlpha);
debugDraw.SetLineThickness(0);
debugDraw.SetFlags(
Box2D.DebugDraw.e_shapeBit |
Box2D.DebugDraw.e_jointBit
// Box2D.DebugDraw.e_aabbBit |
// Box2D.DebugDraw.e_centerOfMassBit |
// Box2D.DebugDraw.e_controllerBit |
// Box2D.DebugDraw.e_pairBit
);
I'm using those in the previous version and in the 2.3 doesn't work.
Also, I don't know if you can, is to still maintain a hierarchy version of Box2D:
For example assign a variable to your b2 variable named: originalBox2D that keeps things in hierarchy like this:
instead of b2.Point to be b2.originalBox2D.Collision.b2Point; Why that? because b2Separator (subdivide non convex in convex shapes) requires a hierarchy object.
Anyway thanks for your contribution, even if I can't make use of it, yet.
Do you have a problem with not properly deleting bodies? viewtopic.php?f=22&t=9595