瀏覽代碼

GJK debug visualization: Fixed drawing with incorrect bounding box

Jorrit Rouwe 2 年之前
父節點
當前提交
285d0ceace
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Jolt/Geometry/GJKClosestPoint.h

+ 1 - 1
Jolt/Geometry/GJKClosestPoint.h

@@ -924,7 +924,7 @@ private:
 		DebugRenderer::sInstance->DrawCoordinateSystem(origin, 1.0f);
 		DebugRenderer::sInstance->DrawCoordinateSystem(origin, 1.0f);
 
 
 		// Draw the hull
 		// 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
 		// Draw Y
 		for (int i = 0; i < mNumPoints; ++i)
 		for (int i = 0; i < mNumPoints; ++i)