mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 06:57:37 +02:00
removed addRandomSphere() which was dead code
This commit is contained in:
parent
f1425216ba
commit
ddf49ffdec
1 changed files with 0 additions and 19 deletions
|
@ -1433,25 +1433,6 @@ void setupPaintingVoxel() {
|
||||||
shiftPaintingColor();
|
shiftPaintingColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
void addRandomSphere(bool wantColorRandomizer)
|
|
||||||
{
|
|
||||||
float r = randFloatInRange(0.05,0.1);
|
|
||||||
float xc = randFloatInRange(r,(1-r));
|
|
||||||
float yc = randFloatInRange(r,(1-r));
|
|
||||||
float zc = randFloatInRange(r,(1-r));
|
|
||||||
float s = 0.001; // size of voxels to make up surface of sphere
|
|
||||||
bool solid = false;
|
|
||||||
|
|
||||||
printLog("random sphere\n");
|
|
||||||
printLog("radius=%f\n",r);
|
|
||||||
printLog("xc=%f\n",xc);
|
|
||||||
printLog("yc=%f\n",yc);
|
|
||||||
printLog("zc=%f\n",zc);
|
|
||||||
|
|
||||||
voxels.createSphere(r,xc,yc,zc,s,solid,wantColorRandomizer);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
const float KEYBOARD_YAW_RATE = 0.8;
|
const float KEYBOARD_YAW_RATE = 0.8;
|
||||||
const float KEYBOARD_PITCH_RATE = 0.6;
|
const float KEYBOARD_PITCH_RATE = 0.6;
|
||||||
const float KEYBOARD_STRAFE_RATE = 0.03;
|
const float KEYBOARD_STRAFE_RATE = 0.03;
|
||||||
|
|
Loading…
Reference in a new issue