Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 0; i < 16; i++) {
- if (i == 0) {
- modelPos[i] = modelPos[i] + glm::vec3(0.0f, 0.0f, 0.0f);
- cout << "First" << endl;
- }
- if (i > 0 && i < 5) {
- modelPos[i] = modelPos[i - 1] + glm::vec3(2.1f, 0.0f, 0.0f);
- cout << "Second loop" << endl;
- cout << "Ball number" << i << " is on coordinates " << modelPos[i].x << ", " << modelPos[i].z << endl;
- }
- if (i > 4 && i < 9) {
- modelPos[i] = modelPos[i - 5] + glm::vec3(1.1f, 0.0f, -2.1f);
- cout << "Third loop" << endl;
- cout << "Ball number" << i << " is on coordinates " << modelPos[i].x << ", " << modelPos[i].z << endl;
- }
- if (i > 8 && i < 12) {
- modelPos[i] = modelPos[i - 4] + glm::vec3(1.1f, 0.0f, -2.1f);
- cout << "Fourth loop" << endl;
- cout << "Ball number" << i << " is on coordinates " << modelPos[i].x << ", " << modelPos[i].z << endl;
- }
- if (i == 12 || i == 13) {
- modelPos[i] = modelPos[i - 3] + glm::vec3(1.1f, 0.0f, -2.1f);
- cout << "Fifth loop" << endl;
- cout << "Ball number" << i << " is on coordinates " << modelPos[i].x << ", " << modelPos[i].z << endl;
- }
- if (i == 14) {
- modelPos[i] = modelPos[i - 2] + glm::vec3(1.1f, 0.0f, -2.1f);
- cout << "Ball number" << i << " is on coordinates " << modelPos[i].x << ", " << modelPos[i].z << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement