diff options
author | Andrea Catania <info@andreacatania.com> | 2018-10-05 10:43:48 +0200 |
---|---|---|
committer | Andrea Catania <info@andreacatania.com> | 2018-10-05 10:44:10 +0200 |
commit | 821bc40dc8d1c19a968ecc3edf7eca7b82fbc659 (patch) | |
tree | 45d01352056759f500d393f1c3df1e58e2d4f951 | |
parent | 0173cf640253af2f1a5c2dd583952e83c2a60ced (diff) |
Added correct allowed penetration parameter to cast motion API
-rw-r--r-- | modules/bullet/space_bullet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/bullet/space_bullet.cpp b/modules/bullet/space_bullet.cpp index ba4c72f4c7..b7f8709c6a 100644 --- a/modules/bullet/space_bullet.cpp +++ b/modules/bullet/space_bullet.cpp @@ -175,7 +175,7 @@ bool BulletPhysicsDirectSpaceState::cast_motion(const RID &p_shape, const Transf btResult.m_collisionFilterGroup = 0; btResult.m_collisionFilterMask = p_collision_mask; - space->dynamicsWorld->convexSweepTest(bt_convex_shape, bt_xform_from, bt_xform_to, btResult, 0.002); + space->dynamicsWorld->convexSweepTest(bt_convex_shape, bt_xform_from, bt_xform_to, btResult, space->dynamicsWorld->getDispatchInfo().m_allowedCcdPenetration); r_closest_unsafe = 1.0; r_closest_safe = 1.0; |