GamePhysicsCookbook icon indicating copy to clipboard operation
GamePhysicsCookbook copied to clipboard

Wrong indices for edge generation

Open FlexW opened this issue 7 months ago • 0 comments

I believe the indices of the edges here (https://github.com/gszauer/GamePhysicsCookbook/blob/master/Code/Geometry3D.cpp#L2055) are wrong and should be like this:

  int index[][2] = {
      // Indices of edges
      {6, 1},
      {6, 2},
      {5, 1},
      {4, 0},
      {3, 7},
      {6, 4},
      {2, 5},
      {2, 0},
      {0, 3},
      {7, 1},
      {7, 4},
      {5, 3}
  };

FlexW avatar May 05 '25 19:05 FlexW