Changeset 622 for code/branches/FICN/src/orxonox/Main.cc
- Timestamp:
- Dec 18, 2007, 6:03:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/Main.cc
r618 r622 123 123 orx->start(); 124 124 #else 125 /* 126 for (int i = 0; i < 500; i++) 127 { 128 int x = rand() % 40000 - 20000; 129 int y = rand() % 40000 - 20000; 130 int z = rand() % 40000 - 20000; 131 132 int scale = rand() % 100 + 20; 133 134 int version = rand() % 6 + 1; 135 136 float rotx = float(rand()) / RAND_MAX; 137 float roty = float(rand()) / RAND_MAX; 138 float rotz = float(rand()) / RAND_MAX; 139 140 int axis = rand() % 3 + 1; 141 142 if (axis == 1) 143 rotx = 0; 144 if (axis == 2) 145 roty = 0; 146 if (axis == 3) 147 rotz = 0; 148 149 int rotation = rand() % 40 + 10; 150 151 // <Model position="1000,1500,0" scale="50" mesh="ast1.mesh" rotationAxis="0,1.25,0" rotationRate="70" /> 152 std::cout << " <Model position=\"" << x << "," << y << "," << z << "\" scale=\"" << scale << "\" mesh=\"ast" << version << ".mesh\" rotationAxis=\"" << rotx << "," << roty << "," << rotz << "\" rotationRate=\"" << rotation << "\" />" << std::endl; 153 154 155 } 156 */ 125 157 orx->init(argc, argv, ""); 126 158 orx->start();
Note: See TracChangeset
for help on using the changeset viewer.