Showing the changes to interface/src/main.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1433,25 +1433,6 @@ void setupPaintingVoxel() { · 1432 unmodified lines | |||
| 1433 | shiftPaintingColor(); | 1433 | shiftPaintingColor(); |
| 1434 | } | 1434 | } |
| 1435 | 1435 | ||
| 1436 | void addRandomSphere(bool wantColorRandomizer) | ||
| 1437 | { | ||
| 1438 | float r = randFloatInRange(0.05,0.1); | ||
| 1439 | float xc = randFloatInRange(r,(1-r)); | ||
| 1440 | float yc = randFloatInRange(r,(1-r)); | ||
| 1441 | float zc = randFloatInRange(r,(1-r)); | ||
| 1442 | float s = 0.001; // size of voxels to make up surface of sphere | ||
| 1443 | bool solid = false; | ||
| 1444 | |||
| 1445 | printLog("random sphere\n"); | ||
| 1446 | printLog("radius=%f\n",r); | ||
| 1447 | printLog("xc=%f\n",xc); | ||
| 1448 | printLog("yc=%f\n",yc); | ||
| 1449 | printLog("zc=%f\n",zc); | ||
| 1450 | |||
| 1451 | voxels.createSphere(r,xc,yc,zc,s,solid,wantColorRandomizer); | ||
| 1452 | } | ||
| 1453 | |||
| 1454 | |||
| 1455 | const float KEYBOARD_YAW_RATE = 0.8; | 1436 | const float KEYBOARD_YAW_RATE = 0.8; |
| 1456 | const float KEYBOARD_PITCH_RATE = 0.6; | 1437 | const float KEYBOARD_PITCH_RATE = 0.6; |
| 1457 | const float KEYBOARD_STRAFE_RATE = 0.03; | 1438 | const float KEYBOARD_STRAFE_RATE = 0.03; |