Add comments for GenMeshTorus

This commit is contained in:
EugenioBarbieriViale 2026-06-23 23:54:51 +02:00
parent 962bbfc6bf
commit 93ab879d38

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 };