Skip to content

Commit 2af4f31

Browse files
authored
Fix the X axis of the second vertex of the Y negative cap of a cylinders, triangle fan (#4478)
1 parent 09570a0 commit 2af4f31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rmodels.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ void DrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float h
603603
for (int i = 0; i < sides; i++)
604604
{
605605
rlVertex3f(0, 0, 0);
606-
rlVertex3f(sinf(DEG2RAD*i*angleStep)*radiusBottom, 0, cosf(DEG2RAD*(i+1)*angleStep)*radiusBottom);
606+
rlVertex3f(sinf(DEG2RAD*(i+1)*angleStep)*radiusBottom, 0, cosf(DEG2RAD*(i+1)*angleStep)*radiusBottom);
607607
rlVertex3f(sinf(DEG2RAD*i*angleStep)*radiusBottom, 0, cosf(DEG2RAD*i*angleStep)*radiusBottom);
608608
}
609609

0 commit comments

Comments
 (0)