Emulating energy-loss in collisions

monkeyman
Posts: 22
Joined: Sat Nov 26, 2011 5:41 pm

Emulating energy-loss in collisions

Post by monkeyman »

Hi,

is there a built-in method in Bullet to emulate inelastic energy-loss in collisions?

Lets say I have two concrete blocks colliding, in bullet they will, if hit on say a corner, start to spin wildly, while in real life they would never do that, a collision imparting that amount of impulse would just chip off the corner. So one way of making it feel more realistic would be to simply remove some energy at impact to reduce these crazy rebounds.

I've looked at various rigid body and collision shape variables and haven't found anything that does this in an obvious way, but I'm sure there is some combination of parameters that emulates it. Otherwise perhaps some contact callback could be used, but it is important that the extra energy-loss is only done at the time of impact, and not continuously if the objects for example slide or roll on each other.