diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2020-10-06 09:10:05 +0100 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2020-10-06 09:10:05 +0100 |
commit | 47431dbb8e539e482daaf0ac9f0ade211029b69a (patch) | |
tree | 9da8a617efafb09936de9668f43e730b6e93707f /modules | |
parent | 9b4399a50991de84c65b0b5f02d3ebb66c80b970 (diff) |
Initialise Bullet RigidBody friction to the expected value of 1.0
Diffstat (limited to 'modules')
-rw-r--r-- | modules/bullet/rigid_body_bullet.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/bullet/rigid_body_bullet.cpp b/modules/bullet/rigid_body_bullet.cpp index f517eecf64..5fc9708a42 100644 --- a/modules/bullet/rigid_body_bullet.cpp +++ b/modules/bullet/rigid_body_bullet.cpp @@ -262,6 +262,7 @@ RigidBodyBullet::RigidBodyBullet() : btRigidBody::btRigidBodyConstructionInfo cInfo(mass, godotMotionState, nullptr, localInertia); btBody = bulletnew(btRigidBody(cInfo)); + btBody->setFriction(1.0); reload_shapes(); setupBulletCollisionObject(btBody); |