Changeset 2430 for code/branches/physics/src/bullet/BulletCollision/CollisionShapes/btOptimizedBvh.cpp
- Timestamp:
- Dec 13, 2008, 11:45:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/bullet/BulletCollision/CollisionShapes/btOptimizedBvh.cpp
r2192 r2430 320 320 321 321 int graphicsindex = indicestype==PHY_SHORT?((unsigned short*)gfxbase)[j]:gfxbase[j]; 322 btScalar* graphicsbase = (btScalar*)(vertexbase+graphicsindex*stride);323 #ifdef DEBUG_PATCH_COLORS 324 btVector3 mycolor = color[index&3];325 graphicsbase[8] = mycolor.getX();326 graphicsbase[9] = mycolor.getY();327 graphicsbase[10] = mycolor.getZ();328 #endif //DEBUG_PATCH_COLORS 329 330 331 triangleVerts[j] = btVector3(332 graphicsbase[0]*meshScaling.getX(),333 graphicsbase[1]*meshScaling.getY(),334 graphicsbase[2]*meshScaling.getZ());322 if (type == PHY_FLOAT) 323 { 324 float* graphicsbase = (float*)(vertexbase+graphicsindex*stride); 325 triangleVerts[j] = btVector3( 326 graphicsbase[0]*meshScaling.getX(), 327 graphicsbase[1]*meshScaling.getY(), 328 graphicsbase[2]*meshScaling.getZ()); 329 } 330 else 331 { 332 double* graphicsbase = (double*)(vertexbase+graphicsindex*stride); 333 triangleVerts[j] = btVector3( btScalar(graphicsbase[0]*meshScaling.getX()), btScalar(graphicsbase[1]*meshScaling.getY()), btScalar(graphicsbase[2]*meshScaling.getZ())); 334 } 335 335 } 336 336
Note: See TracChangeset
for help on using the changeset viewer.