I tried building Bullet 2.56 in the double precision configuration in Visual Studio 2005 (bullet-2.56\msvc\8\wksbullet.sln), and I got 2 distinct build errors. The first is because plReal is defined as a float in bullet-c-api.h, line 28. I fixed that with the following...
Code: Select all
#ifdef BT_USE_DOUBLE_PRECISION
typedef double plReal;
#else
typedef float plReal;
#endif
Code: Select all
error C2782: 'const T &btMax(const T &,const T &)' : template parameter 'T' is ambiguous
I fixed that by changing
Code: Select all
m_accTwistLimitImpulse = btMax(m_accTwistLimitImpulse + impulseMag, 0.0f );
Code: Select all
m_accTwistLimitImpulse = btMax<btScalar>(m_accTwistLimitImpulse + impulseMag, 0.0f );
- Alex