fix BT_USE_DOUBLE_PRECISION build, address Issue 177

https://github.com/bulletphysics/bullet3/issues/177
This commit is contained in:
Erwin Coumans
2014-05-19 14:53:11 -07:00
parent 2601932249
commit 3dd759c463
6 changed files with 66 additions and 18 deletions

View File

@@ -26,8 +26,8 @@ BasicDemo::~BasicDemo()
void BasicDemo::createGround(int cubeShapeId)
{
{
float color[]={0.3,0.3,1,1};
float halfExtents[]={50,50,50,1};
btVector4 color(0.3,0.3,1,1);
btVector4 halfExtents(50,50,50,1);
btTransform groundTransform;
groundTransform.setIdentity();
groundTransform.setOrigin(btVector3(0,-50,0));
@@ -71,7 +71,7 @@ void BasicDemo::initPhysics()
{
float halfExtents[]={scaling,scaling,scaling,1};
btVector4 halfExtents(scaling,scaling,scaling,1);
btVector4 colors[4] =
{
btVector4(1,0,0,1),

View File

@@ -15,8 +15,11 @@ public:
{
}
virtual void drawLine(const btVector3& from,const btVector3& to,const btVector3& color)
virtual void drawLine(const btVector3& from1,const btVector3& to1,const btVector3& color1)
{
float from[4] = {from1[0],from1[1],from1[2],from1[3]};
float to[4] = {to1[0],to1[1],to1[2],to1[3]};
float color[4] = {color1[0],color1[1],color1[2],color1[3]};
m_glApp->m_instancingRenderer->drawLine(from,to,color);
}