Fixes for double precision compilation

Thanks to Dennis Cappendijk for the report and fix
See Issue 575
This commit is contained in:
erwin.coumans
2012-02-29 03:50:53 +00:00
parent 0ad2738167
commit b8d293c1fe
6 changed files with 19 additions and 19 deletions

View File

@@ -43,7 +43,7 @@ btConvexShape::~btConvexShape()
}
void btConvexShape::project(const btTransform& trans, const btVector3& dir, float& min, float& max) const
void btConvexShape::project(const btTransform& trans, const btVector3& dir, btScalar& min, btScalar& max) const
{
btVector3 localAxis = dir*trans.getBasis();
btVector3 vtx1 = trans(localGetSupportingVertex(localAxis));
@@ -54,7 +54,7 @@ void btConvexShape::project(const btTransform& trans, const btVector3& dir, floa
if(min>max)
{
float tmp = min;
btScalar tmp = min;
min = max;
max = tmp;
}