Add comments for GenMeshTorus (#5934)

This commit is contained in:
eu
2026-06-24 08:36:30 +00:00
committed by GitHub
parent 962bbfc6bf
commit ba3b8f8370

View File

@@ -3142,6 +3142,8 @@ Mesh GenMeshCone(float radius, float height, int slices)
}
// Generate torus mesh
// The distance between the center of the hole and the center of the tube is half of size
// The radius of the tube is (radius * size / 2)
Mesh GenMeshTorus(float radius, float size, int radSeg, int sides)
{
Mesh mesh = { 0 };