GamePhysicsCookbook
GamePhysicsCookbook copied to clipboard
Wrong indices for edge generation
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}
};