Fix issue : the scaling factor was not used when recomputing AABB tree for concave mesh shape
This commit is contained in:
parent
013431487e
commit
8bfa6dd137
|
@ -57,6 +57,11 @@ void ConcaveMeshShape::initBVHTree() {
|
||||||
// Get the triangle vertices
|
// Get the triangle vertices
|
||||||
triangleVertexArray->getTriangleVertices(triangleIndex, trianglePoints);
|
triangleVertexArray->getTriangleVertices(triangleIndex, trianglePoints);
|
||||||
|
|
||||||
|
// Apply the scaling factor to the vertices
|
||||||
|
trianglePoints[0] *= mScaling.x;
|
||||||
|
trianglePoints[1] *= mScaling.y;
|
||||||
|
trianglePoints[2] *= mScaling.z;
|
||||||
|
|
||||||
// Create the AABB for the triangle
|
// Create the AABB for the triangle
|
||||||
AABB aabb = AABB::createAABBForTriangle(trianglePoints);
|
AABB aabb = AABB::createAABBForTriangle(trianglePoints);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user