Can i help Bullet to resolve collisions

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

Can i help Bullet to resolve collisions

Post by Yola » Tue Feb 26, 2019 12:27 pm

Hello,

i have a simulation of pallet with a lot of boxes on it. But at the bottom of the pallet i see that boxes penetrate into each over. Can i tune Bullet to resolve it or write my handler to resolve it? If it is possible to add such a handler, then how can i do it?

steven
Posts: 71
Joined: Mon Nov 05, 2018 8:16 am
Location: China

Re: Can i help Bullet to resolve collisions

Post by steven » Wed Feb 27, 2019 6:38 am

Could you share your code? i can work with you together.

User avatar
Erwin Coumans
Site Admin
Posts: 4193
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: Can i help Bullet to resolve collisions

Post by Erwin Coumans » Wed Feb 27, 2019 4:19 pm

A few things to try:
  • * use a smaller simulation step
    * increase the number of solver iterations
    * use a direct solver, Bullet provides Dantzig MLCP solver, see some of the examples in the ExampleBrowser
    * Use a btBoxShape for the ground
    * Enable SAT, separating axis test if you use btConvexHullShape
Good luck!
Erwin

Post Reply