collide: Flip triangle winding in CreateDebugMesh

Closes: #44
pull/69/head
Joshua Ashton 7 months ago committed by Joshie
parent db13ffba6e
commit c6c1a6dba1

@ -758,6 +758,10 @@ int JoltPhysicsCollision::CreateDebugMesh( CPhysCollide const *pCollisionModel,
}
}
// Swap the winding of the triangles to match original VPhysics behaviour.
for ( int i = 0; i < nAccumTris; i++ )
Swap( pVerts[ ( i * 3 ) + 0 ], pVerts[ ( i * 3 ) + 2 ] );
*outVerts = pVerts;
return nAccumTris * 3;
}

Loading…
Cancel
Save