Stacked boxes problem !!!

winspear
Posts: 77
Joined: Thu Nov 26, 2009 6:32 pm

Stacked boxes problem !!!

Post by winspear »

Hi,
I have a simple demo where I initialize and display a bunch of boxes.
Collision detection works fine but when I try to stack one box over another using the mouse, it stays there only for a brief moment before sliding off and falling down.
I tried setting friction, restitution etc. for the boxes but this does not solve the problem.

What am I missing here?

Thanks
Venkat
winspear
Posts: 77
Joined: Thu Nov 26, 2009 6:32 pm

Re: UPDATE:WEIRD BEHAVIOR: Stacked boxes problem !!!

Post by winspear »

Update: SOLVED.

Looks like the problem is related to the splitImpulse feature and goes away when it is disabled.
When you split the impulse and set a penetration depth threshold for it, then the stacking of boxes seems to have a problem.
WEIRD behavior: When I pick a box to stack over another and move it close to the stationary box , the stationary box starts to slide away slowly. This happens at just close proximity, you don't even have to actually touch or collide the box.

But when I DISABLE the SPLIT IMPULSE FEATURE, stacking works perfectly.

Does anyone have an explanation for what is going on here?
GameOn
Posts: 35
Joined: Mon Dec 27, 2010 10:46 pm

Re: Stacked boxes problem !!!

Post by GameOn »

Well I have no explanation for that,

But I thanks for telling us about this issue.