Browse Source

GJK debug visualization: Fixed drawing with incorrect bounding box

Jorrit Rouwe 2 years ago
parent
commit
285d0ceace
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Jolt/Geometry/GJKClosestPoint.h

+ 1 - 1
Jolt/Geometry/GJKClosestPoint.h

@@ -924,7 +924,7 @@ private:
 		DebugRenderer::sInstance->DrawCoordinateSystem(origin, 1.0f);
 
 		// Draw the hull
-		DebugRenderer::sInstance->DrawGeometry(origin, mGeometry->mBounds, mGeometry->mBounds.GetExtent().LengthSq(), Color::sYellow, mGeometry);
+		DebugRenderer::sInstance->DrawGeometry(origin, mGeometry->mBounds.Transformed(origin), mGeometry->mBounds.GetExtent().LengthSq(), Color::sYellow, mGeometry);
 
 		// Draw Y
 		for (int i = 0; i < mNumPoints; ++i)