yoshinoToylogic / bulletsharp

Automatically exported from code.google.com/p/bulletsharp
MIT License
0 stars 0 forks source link

CollisionWorld not removing CollisionObjects from CollisionObjectArray #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
On the latest SVN (r137), I'm seeing collisionobjects in my world that have 
been removed; NumCollisionObjects is correct, though. If I create three bodies, 
and then remove one, and use the following code:

foreach (CollisionObject obj in world.CollisionObjectArray)
{
    Console.WriteLine(obj.ToString());              
}
Console.WriteLine(world.NumCollisionObjects + "\n");

I see three ToString entries - including the object I deleted - followed by 
'2'. 

I couldn't find the issue when looking through the source; Bullet's 
implementation of removeRigidBody() does remove it from the container; I'm not 
too familiar with using C++/CLI for enumerables.

Original issue reported on code.google.com by subquan...@gmail.com on 3 Jul 2010 at 5:54

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r138.

Original comment by andres.traks on 3 Jul 2010 at 11:19