summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-10-13 09:51:53 +0200
committerGitHub <noreply@github.com>2020-10-13 09:51:53 +0200
commit4efcb4c442b687a1054dad973c03811d7bbb8640 (patch)
treedb5ba6209a6f0b50e8d07eee281bf9204ad01b55 /modules
parent0df77936935272529a14e3c4d24a780fe46ff28d (diff)
parent47431dbb8e539e482daaf0ac9f0ade211029b69a (diff)
Merge pull request #42592 from madmiraal/fix-42567
Initialise Bullet RigidBody friction to the expected value of 1.0
Diffstat (limited to 'modules')
-rw-r--r--modules/bullet/rigid_body_bullet.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/bullet/rigid_body_bullet.cpp b/modules/bullet/rigid_body_bullet.cpp
index 76c0e0e607..eb599df74c 100644
--- a/modules/bullet/rigid_body_bullet.cpp
+++ b/modules/bullet/rigid_body_bullet.cpp
@@ -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);