From becd3c383176c738b12702692c46bbc5f628d241 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Sun, 9 Feb 2020 21:04:03 +0100 Subject: [PATCH] REVIEWED: GenMeshCylinder(), solved issue #1088 --- src/models.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/models.c b/src/models.c index 7e44ae48e..8dd954983 100644 --- a/src/models.c +++ b/src/models.c @@ -1655,6 +1655,7 @@ Mesh GenMeshCylinder(float radius, float height, int slices) par_shapes_mesh *cylinder = par_shapes_create_cylinder(slices, 8); par_shapes_scale(cylinder, radius, radius, height); par_shapes_rotate(cylinder, -PI/2.0f, (float[]){ 1, 0, 0 }); + par_shapes_rotate(cylinder, PI/2.0f, (float[]){ 0, 1, 0}); // Generate an orientable disk shape (top cap) par_shapes_mesh *capTop = par_shapes_create_disk(radius, slices, (float[]){ 0, 0, 0 }, (float[]){ 0, 0, 1 });