Can i turn off sliding

Yola
Posts: 10
Joined: Wed Oct 24, 2018 8:38 am

Can i turn off sliding

Post by Yola »

I need to simulate a pallet with boxes. When i load a lot of boxes, they start to slide, because i have some small vertical gaps between boxes. Such a pallet quickly collapse.

I think that for me would be enough to just simulate torque. I mean to allow boxes to tip over or roll. For now i think to debug into Bullet and make find a spot where sliding integrates into movement and disable it, but maybe there is an option to do it without changing the library?
ritzmax72
Posts: 3
Joined: Mon Apr 15, 2019 2:48 am

Re: Can i turn off sliding

Post by ritzmax72 »

May be set friction?
User avatar
drleviathan
Posts: 849
Joined: Tue Sep 30, 2014 6:03 pm
Location: San Francisco

Re: Can i turn off sliding

Post by drleviathan »

You could also try reducing the "restitution". It is a normalized value that basically represents how "bouncy" the objects are. It ranges from 0.0 (soft, no energy is conserved on collision) to 1.0 (hard, max energy is conserved).