NullReferenceException after Space.Remove
Posted: Thu Oct 14, 2010 12:36 am
hi norbo,
first of all thanks for your great work!
i'm using bepu physics since v0.8 now but recently run into an issue after updating to the latest releases (0.14.x).
when i try to remove an entity that has created a collisionpair i get a nullref exception.
in my scenario (which worked in previous versions) are some boxes and a sphere. when the sphere collides with a box, the box will get removed from the collision space.
on the next scene update, when the collision space's update is called, i get a nullref exception.
isn't this the recommended way to remove entities from the space or am i doing something wrong?
System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
Source="BEPUphysics"
StackTrace:
at BEPUphysics.CollisionPair.UpdateContactManifold(Single dt)
at BEPUphysics.Space.UpdateCollisionDetectionCcd()
at BEPUphysics.Space.UpdateCcd()
at BEPUphysics.Space.UpdateWithInternalTimeSteps(Single timeSinceLastFrame)
at BEPUphysics.Space.Update(Single timeSinceLastFrame)
at BEPUphysics.Space.Update(GameTime gameTime)
...
first of all thanks for your great work!
i'm using bepu physics since v0.8 now but recently run into an issue after updating to the latest releases (0.14.x).
when i try to remove an entity that has created a collisionpair i get a nullref exception.
in my scenario (which worked in previous versions) are some boxes and a sphere. when the sphere collides with a box, the box will get removed from the collision space.
on the next scene update, when the collision space's update is called, i get a nullref exception.
isn't this the recommended way to remove entities from the space or am i doing something wrong?
System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
Source="BEPUphysics"
StackTrace:
at BEPUphysics.CollisionPair.UpdateContactManifold(Single dt)
at BEPUphysics.Space.UpdateCollisionDetectionCcd()
at BEPUphysics.Space.UpdateCcd()
at BEPUphysics.Space.UpdateWithInternalTimeSteps(Single timeSinceLastFrame)
at BEPUphysics.Space.Update(Single timeSinceLastFrame)
at BEPUphysics.Space.Update(GameTime gameTime)
...