[Bepu 2] Deleting stacked objects.

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Darkon76
Posts: 23
Joined: Mon Mar 27, 2017 12:33 pm

[Bepu 2] Deleting stacked objects.

Post by Darkon76 »

Hello,

Just reporting if you have a stack of sleeping cubes, if you delete the bottom object the top objects don't wakeup and fall. My workaround was using the Simulation.Awaker before removing the object from the simulation.

Regards.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: [Bepu 2] Deleting stacked objects.

Post by Norbo »

I can't reproduce this in the demos without setting the BodyActivityDescription to extremely aggressive values such that the stack falls asleep before it can accelerate due to gravity. Notably, removing a body already forces the associated island awake, and removing a static forces all bodies touching its bounds awake. Manually forcing the bodies awake shouldn't change things, since they were already forced awake as a part of removal.

Could you provide a snippet that reproduces the issue in the demos?
Post Reply