fix double-precision compile bug
This commit is contained in:
@@ -268,20 +268,27 @@ public:
|
|||||||
if (m_guiHelper)
|
if (m_guiHelper)
|
||||||
{
|
{
|
||||||
btAlignedObjectArray<unsigned int> indices;
|
btAlignedObjectArray<unsigned int> indices;
|
||||||
btAlignedObjectArray<btVector3> points;
|
btAlignedObjectArray<btVector3FloatData> points;
|
||||||
|
|
||||||
|
|
||||||
float lineColor[4]={1,0.4,.4,1};
|
float lineColor[4]={1,0.4,.4,1};
|
||||||
|
|
||||||
for (int i = 0; i < NUMRAYS; i++)
|
for (int i = 0; i < NUMRAYS; i++)
|
||||||
{
|
{
|
||||||
points.push_back(source[i]);
|
btVector3FloatData s,h;
|
||||||
points.push_back(hit[i]);
|
for (int w=0;w<4;w++)
|
||||||
|
{
|
||||||
|
s.m_floats[w] = source[i][w];
|
||||||
|
h.m_floats[w] = hit[i][w];
|
||||||
|
}
|
||||||
|
|
||||||
|
points.push_back(s);
|
||||||
|
points.push_back(h);
|
||||||
indices.push_back(indices.size());
|
indices.push_back(indices.size());
|
||||||
indices.push_back(indices.size());
|
indices.push_back(indices.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
m_guiHelper->getRenderInterface()->drawLines(&points[0].x(),lineColor,points.size(),sizeof(btVector3),&indices[0],indices.size(),1);
|
m_guiHelper->getRenderInterface()->drawLines(&points[0].m_floats[0],lineColor,points.size(),sizeof(btVector3),&indices[0],indices.size(),1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|||||||
Reference in New Issue
Block a user