Skip to content

Commit

Permalink
Fixed capsule shape
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardodoria committed Mar 2, 2024
1 parent e9b8b4f commit 36cfe08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/core/subsystem/MeshSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1378,8 +1378,8 @@ void MeshSystem::createCapsule(Entity entity, float baseRadius, float topRadius,

std::vector<uint16_t> indices;

for (int i = 0; i < stacks + 1; ++i) {
for (int j = 0; j < slices; ++j) {
for (int i = 0; i < (stacks + 1); ++i) {
for (int j = 0; j < (slices + 1); ++j) {
int first = (i * (slices + 1)) + j;
int second = first + slices + 1;

Expand Down

0 comments on commit 36cfe08

Please sign in to comment.