bulletphysics / bullet3

Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc.
http://bulletphysics.org
Other
12.18k stars 2.85k forks source link

Strange behavior between btBoxShape and btSphereShape in some cases. #4631

Open vovan4ik123-engine opened 1 week ago

vovan4ik123-engine commented 1 week ago

Probably corner case of library. Version 3.2.5. I have static cube as btBoxShape + dynamic sphere as btSphereShape.

As image shows sphere not roling properly on inclined box surface if it is rotated 5 - 10 degrees around Z axis. If rotation angle less than 5 degrees or more than 10 everything works good. In my case friction of cube = 2, friction of sphere = 80. I found the more I increase friction of sphere and cube the worse it gets. (sphere bechavior on inclined box surface).

image