Use kF_UseGjkConvexCastRaytest by default for raycast in PyBullet (it is more robust/accurate, but a bit slower)

Use 10*EPSILON, as suggested in Gino's paper:
http://www.continuousphysics.com/ftp/pub/test/files/physics/papers/jgt04raycast.pdf
This commit is contained in:
Erwin Coumans
2018-03-07 14:51:51 -08:00
parent 07f116610f
commit b578361acf
2 changed files with 5 additions and 5 deletions

View File

@@ -72,11 +72,8 @@ bool btSubsimplexConvexCast::calcTimeOfImpact(
btScalar dist2 = v.length2();
#ifdef BT_USE_DOUBLE_PRECISION
btScalar epsilon = btScalar(0.0001);
#else
btScalar epsilon = btScalar(0.0001);
#endif //BT_USE_DOUBLE_PRECISION
btScalar epsilon = SIMD_EPSILON * 10;
btVector3 w,p;
btScalar VdotR;