1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

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

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);