Fix issue in ConcaveMeshShape (AABB calculation)
This commit is contained in:
parent
e135d4b592
commit
63094dfd92
|
@ -134,10 +134,10 @@ void ConcaveMeshShape::recalculateBounds() {
|
|||
// Get the index of the current vertex in the triangle
|
||||
int vertexIndex;
|
||||
if (indexType == TriangleVertexArray::INDEX_INTEGER_TYPE) {
|
||||
vertexIndex = ((unsigned int*)(indicesStart + j * indexStride))[k];
|
||||
vertexIndex = ((unsigned int*)(indicesStart + j * 3 * indexStride))[k];
|
||||
}
|
||||
else if (indexType == TriangleVertexArray::INDEX_SHORT_TYPE) {
|
||||
vertexIndex = ((unsigned short*)(indicesStart + j * indexStride))[k];
|
||||
vertexIndex = ((unsigned short*)(indicesStart + j * 3 * indexStride))[k];
|
||||
}
|
||||
|
||||
Vector3 vertex;
|
||||
|
|
Loading…
Reference in New Issue
Block a user