Use btContinuousConvexCollision instead of btGjkConvexCast (has issues in btCollisionWorld::objectQuerySingle)

Fixes in btHeightfieldTerrainShape, thanks Jay Lee.
This commit is contained in:
ejcoumans
2007-12-11 00:38:13 +00:00
parent a45912e39c
commit c1c01ff1a0
3 changed files with 117 additions and 113 deletions

View File

@@ -412,8 +412,8 @@ void btCollisionWorld::objectQuerySingle(const btConvexShape* castShape,const bt
btConvexShape* convexShape = (btConvexShape*) collisionShape;
btVoronoiSimplexSolver simplexSolver;
btGjkConvexCast convexCaster(castShape,convexShape,&simplexSolver);
btContinuousConvexCollision convexCaster(castShape,convexShape,&simplexSolver,0);
if (convexCaster.calcTimeOfImpact(convexFromTrans,convexToTrans,colObjWorldTransform,colObjWorldTransform,castResult))
{
//add hit