Ported Box2d AS3 2.0 to Javascript, got a problem

Hi Guys,

I hacked together a little script to translate version 2.0 of Box2D AS3.
The result mostly works. However, when a falling box hits the static
ground plane with an edge it moves straight through. My porting efforts
must have messed up something. But I just can't pinpoint the issue, mostly
because I don't really know how the box2d internals work. What the .... could
cause that?

I created a little test page that clearly illustrates the issue:
[link removed]
If you open the page with a javascript debugger (like firebug)
enabled it will break before the exact world.Step where the problem occurs.
I would really appreciate any kind of help, as I'm pretty much lost.

Thanks,
Jonas
Ok, I found the issue, I didn't think of the getter/setter overloading in Features.as and somewhere else. So it works now, but it definitely needs some tuning. 🙂

Cheers,
Jonas
Sounds great!

Can you post a link to your port? I'd love to download it.
It's not really finished or tested. But as there seems to be interest I'll probably publish it as it is in the following days.

Cheers,
Jonas
Very much appreciated. I'm looking at it in terms of just playing with it.

I wondered about how much effort it was to port it. When I read some of the background from the person who ported the earlier version of Box2D to javascript, via the Box2DJS project on sourceforge, he said it was an automated port from AS3 version of Box2D. Sounds like the port you did wasn't completely automated.....

Thanks again for your efforts!

Original thread: https://box2d.org/forum/viewtopic.php?t=4572