Fixes for double precision compilation
Thanks to Dennis Cappendijk for the report and fix See Issue 575
This commit is contained in:
@@ -208,7 +208,7 @@ const char* btConvexHullShape::serialize(void* dataBuffer, btSerializer* seriali
|
||||
return "btConvexHullShapeData";
|
||||
}
|
||||
|
||||
void btConvexHullShape::project(const btTransform& trans, const btVector3& dir, float& min, float& max) const
|
||||
void btConvexHullShape::project(const btTransform& trans, const btVector3& dir, btScalar& min, btScalar& max) const
|
||||
{
|
||||
#if 1
|
||||
min = FLT_MAX;
|
||||
@@ -221,7 +221,7 @@ void btConvexHullShape::project(const btTransform& trans, const btVector3& dir,
|
||||
{
|
||||
btVector3 vtx = m_unscaledPoints[i] * m_localScaling;
|
||||
btVector3 pt = trans * vtx;
|
||||
float dp = pt.dot(dir);
|
||||
btScalar dp = pt.dot(dir);
|
||||
if(dp < min)
|
||||
{
|
||||
min = dp;
|
||||
@@ -244,7 +244,7 @@ void btConvexHullShape::project(const btTransform& trans, const btVector3& dir,
|
||||
|
||||
if(min>max)
|
||||
{
|
||||
float tmp = min;
|
||||
btScalar tmp = min;
|
||||
min = max;
|
||||
max = tmp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user