behdad / box2d

Automatically exported from code.google.com/p/box2d
2 stars 12 forks source link

if is possible the 2 bodies of a joint are the same body. #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
although it is weird, it is possible.

It will make problems when destroying this body.

I made a path to fix this problem.

Original issue reported on code.google.com by Tapir....@gmail.com on 4 Dec 2009 at 10:27

Attachments:

GoogleCodeExporter commented 9 years ago
This is not allowed. I just added an assertion at creation.

Original comment by erinca...@gmail.com on 7 Dec 2009 at 8:47