Commit 24dbed02 authored by Amira Abdel-Rahman's avatar Amira Abdel-Rahman

added quarantine and central locations

parent afec779b
Pipeline #5357 passed with stage
in 1 second
......@@ -280,6 +280,10 @@
}
//if other not infected
if ( mass2 > 15.0 ) {
if(rand(pos.xz/size)<probabilityNewInfection){
time=0.1;
//infect
}
continue;
}
vec3 dPos = pos2 - pos;
......@@ -307,12 +311,6 @@
{
if (mass>5.0){ //if infected
time=time+0.1;
}else{//if removed small percentage return
if(rand(pos.xz/size)*10.0<probabilityNewInfection){
time=0.1;
//infect
}
}
//if(time >=probabilityNewInfection){
// //mass=0.0;//removed
......@@ -459,7 +457,7 @@
centralLocations:false,
quarantined:false,
percentageCriticalBusiness:0.1,
probabilityNewInfection:0.0001
probabilityNewInfection:0.001
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment