Merge pull request #42592 from madmiraal/fix-42567

Initialise Bullet RigidBody friction to the expected value of 1.0
This commit is contained in:
Rémi Verschelde 2020-10-13 09:51:53 +02:00 committed by GitHub
commit 4efcb4c442
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -264,6 +264,7 @@ RigidBodyBullet::RigidBodyBullet() :
btRigidBody::btRigidBodyConstructionInfo cInfo(mass, godotMotionState, nullptr, localInertia);
btBody = bulletnew(btRigidBody(cInfo));
btBody->setFriction(1.0);
reload_shapes();
setupBulletCollisionObject(btBody);