Add comments for GenMeshTorus
This commit is contained in:
parent
962bbfc6bf
commit
93ab879d38
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user