From ba3b8f837051d3a58b27fc82fcc6177ed89016f1 Mon Sep 17 00:00:00 2001 From: eu <82298389+EugenioBarbieriViale@users.noreply.github.com> Date: Wed, 24 Jun 2026 08:36:30 +0000 Subject: [PATCH] Add comments for GenMeshTorus (#5934) --- src/rmodels.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rmodels.c b/src/rmodels.c index 3198e47a4..8e87ccfa2 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -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 };