bevy_xpbd icon indicating copy to clipboard operation
bevy_xpbd copied to clipboard

3D friction behaves unrealistically

Open Jondolf opened this issue 1 year ago • 0 comments
trafficstars

The current 3D friction implementation seems to be incorrect. As can be seen in the Gif in the README's "Usage example", the box stays essentially at the same spot despite dropping onto a corner.

Box dropping onto a platform

Intuitively, you would expect the box to tumble in some direction based on which corner hit the ground and how. In fact, this is what happens with a similar setup using Rapier.

Notably, our current behavior can be roughly replicated in Rapier with a friction of zero. It almost looks like our friction only kicks in once the box is flat on the ground and the contact points are clearly sliding along the surface.

A similar setup in 2D does seem to work correctly.

Jondolf avatar Aug 14 '24 22:08 Jondolf