netmil / box2dweb

Automatically exported from code.google.com/p/box2dweb
0 stars 0 forks source link

world.CreateJoint() on PrismaticJoint fails #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Following code fails and browser hangs -  tested on opera 11 and Firefox 4.0b8.

var pjoint = new b2PrismaticJointDef();
pjoint.Initialize(o1, o2, o1.GetPosition(), o2.GetPosition());
world.CreateJoint(pjoint)

Original issue reported on code.google.com by kristjan...@gmail.com on 18 Nov 2010 at 9:55

GoogleCodeExporter commented 9 years ago
Could you please provide the whole source-code?
I tried this code and i have no problems (if o1/o2 are instances of b2Body).

By the way, Firefox 4.0b8 doesn't exist. Did you mean 4.0b7 ?

Original comment by Uli.He...@googlemail.com on 19 Nov 2010 at 12:31

GoogleCodeExporter commented 9 years ago
I meant 4.0b8pre(nightly).

Original comment by kristjan...@gmail.com on 19 Nov 2010 at 1:30

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks.
Behavior in Google Chrome: The script continues but the bodies disappear.
I cannot debug it using Firefox+Firebug at the moment due to a bug which 
prevents opening FireBug. Anyways, Google Chrome shows that something is wrong.

Original comment by Uli.He...@googlemail.com on 19 Nov 2010 at 2:20

GoogleCodeExporter commented 9 years ago

Original comment by Uli.He...@googlemail.com on 20 Nov 2010 at 4:30

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r9.

Original comment by Uli.He...@googlemail.com on 20 Nov 2010 at 8:05

GoogleCodeExporter commented 9 years ago
This was a very important report. Fixing it solved some other problems, too.
Note that only the trunk is updated. The version in the "Downloads"-section 
doesn't contain the fix.

Original comment by Uli.He...@googlemail.com on 20 Nov 2010 at 8:51