More Compound body woes.

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Rademanc
Posts: 16
Joined: Sat Apr 25, 2009 4:21 pm

More Compound body woes.

Post by Rademanc »

I seem to have more trouble with the compound body.
I get a nullreferenceexception in the following method when calling removebody on my compound bodies.
{Void replace(BEPUphysics.Entities.Entity, BEPUphysics.SimulationIsland)}

It always seems very erratic and depend on which entities are added when.
E.g I can call it on one compound object but not the next, then if I swap them , I can now call it on the swapped object but not the next. Or if I add a box to one compound body it breaks on removebody for a different compoundbody that worked fine.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: More Compound body woes.

Post by Norbo »

Could you provide an example setup which triggers the error?
Rademanc
Posts: 16
Joined: Sat Apr 25, 2009 4:21 pm

Re: More Compound body woes.

Post by Rademanc »

Never mind, it was my code. :)
Post Reply