Collision margin and scaling

Post Reply
marcimatz
Posts: 34
Joined: Fri Sep 18, 2009 5:41 am

Collision margin and scaling

Post by marcimatz »

Hello,

Since quite some time I am using Bullet by scaling dimensions up by a factor 10 (or more) for better stability (I work in smaller dimensions). Of course I accordingly scale up all other values too in a correct fashion. That works fine.
However I am not scaling up collision margins (by default set to 0.04) and I am wondering whether I should. Of course I tried to scale collision margins up, and my scenes become jittery and don't behave "correctly" anymore. In other rare situations, scaling down the collision margin improves results.

So my question is: what is the relationship between the collision margin and dimensions in Bullet? In my understanding collision margins are defined in the same unit as dimensions, and should also be scaled in a similar way as dimensions.

Thanks
Post Reply