CodePlexProject Hosting for Open Source Software
I'm trying to find all geoms that are under a point,
sometimes CollideAll crashes :
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
Any ideas ?
Have you removed objects from the physics simulator?
Yes, I have.
I called physicsSimulator.Remove(body)
and then disposed the body.
Is there anything else to do when removing objects ?
Try removing the geom as well.
If continue giving errors, try first disabling the bodies and geoms without removing them and see if the error persists.
Actually, I'm removing just the Geom.
I need to resize it, so I remove it, build a new one and recaculate the Body MomentOfInertia.
I will try to disable and remove later.
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.